Skip to content

Quick shim for providing soyutils as a node/commonjs module.

Notifications You must be signed in to change notification settings

mattpowell/soyutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Quick shim for providing soyutils as a node/commonjs module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published