Browse Source

Adding dojo support at dojox.string.mustache.

tags/0.2
Chris Williams 16 years ago
parent
commit
d9bcda5647
3 changed files with 7 additions and 6 deletions
  1. +4
    -3
      Rakefile
  2. +0
    -0
      mustache-dojo/mustache.js.tpl.post
  3. +3
    -3
      mustache-dojo/mustache.js.tpl.pre

+ 4
- 3
Rakefile View File

@@ -31,9 +31,10 @@ end
task :dojo do
print "Packaging for dojo\n"
source = "mustache-dojo"
target_js = "dojo.mustache.js"
`cat #{source}/#{target_js}.tpl.pre mustache.js #{source}/#{target_js}.tpl.post > #{target_js}`
print "Done, see ./#{target_js}\n"
target_js = "mustache.js"
`mkdir -p dojox; mkdir -p dojox/string`
`cat #{source}/#{target_js}.tpl.pre mustache.js #{source}/#{target_js}.tpl.post > dojox/string/#{target_js}`
print "Done, see ./dojox/string/#{target_js} Include using dojo.require('dojox.string.mustache.'); \n"
end




mustache-dojo/dojo.mustache.js.tpl.post → mustache-dojo/mustache.js.tpl.post View File


mustache-dojo/dojo.mustache.js.tpl.pre → mustache-dojo/mustache.js.tpl.pre View File

@@ -1,9 +1,9 @@
/*
Shameless port of a shameless port
@defunkt => @janl => @aq
@defunkt => @janl => @aq => @voodootikigod
See http://github.com/defunkt/mustache for more info.
*/

dojo.provide("dojo.mustache");
(function(d) {
dojo.provide("dojox.string.mustache");
;(function(d) {

Loading…
Cancel
Save