soyutils
v3.0.0
Published
Quick shim for providing soyutils (et al., soy and soydata) as a node/commonjs module
Downloads
4
Readme
soyutils
Quick shim for providing soyutils (et al., soy and soydata) as a node/commonjs module. This module is meant to be used when browserify-ing Soy templates compiled via commonjs-soy
, but obviously, feel free to use however you want :).
Installation
npm install soyutils --save
or download soyutils_nogoog.js
manually.
Usage
var soy = require('soyutils/soy');
var soydata = require('soyutils/soydata');
// ... run soy templates ...
-- or, in the browser --
<script src="soyutils_nogoog.js"></script>
<script>
// window.soy and window.soydata should be available
// ... run soy templates ...
</script>