Sha256: 5c1db25177fe4f054b0558cbed9639ebff2228ce7e92c94808990eed31b4f0bf
Contents?: true
Size: 282 Bytes
Versions: 1
Compression:
Stored size: 282 Bytes
Contents
module Stitch class TmplCompiler < Compiler extensions :tmpl def compile(path) content = File.read(path) %{var template = jQuery.template(#{content.to_json}); module.exports = (function(data){ return jQuery.tmpl(template, data); });} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stitch-rb-0.0.7 | lib/stitch/compilers/tmpl.rb |