Ghost/core/server/helpers/utils.js
2015-03-11 12:37:41 -06:00

12 lines
364 B
JavaScript

var _ = require('lodash'),
utils;
utils = {
assetTemplate: _.template('<%= source %>?v=<%= version %>'),
linkTemplate: _.template('<a href="<%= url %>"><%= text %></a>'),
scriptTemplate: _.template('<script src="<%= source %>?v=<%= version %>"></script>'),
isProduction: process.env.NODE_ENV === 'production'
};
module.exports = utils;