combyne precompiler plugin for browserify.
Install combynify
from npm, probably as a devDependency:
npm install --save-dev combynify
Use it as a browserify transform with -t
:
browerify -t combynify main.js > bundle.js
If you're planning on using an extension other than html
, you should configure the extension
option using Browserify's configuration.
Set like:
browserify -t [ combynify --extension .tmpl ] index.js > dist/out.js
main.js can look something like this:
var template = require('./hello.combyne') console.log(template.render({ who: 'world' }))
hello.combyne
is a text file like this:
This is the equivalent of doing:
var template = combyne('hello, {{ who }}') console.log(template.render({ who: 'world' }))
so you can use all of combyne's fancy features like filters and partials:
var template = require('./hello.combyne') template.registerFilter(...) template.registerPartial(...) console.log(template.render({ who: 'world' }))
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4