Sha256: 515a551d27a7438fb5bf01cc7eda31965a4733495d3f5aee528044778c94e8ef
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 Bytes
Contents
#!/usr/bin/env ruby require "jstgenerator" type = ARGV[0] glob = ARGV[1] out = ARGV[2] if type == "handlebars" puts "Using Handlebars" JstGenerator::Handlebars.new(:dir_glob => glob, :jst_path => out).generate puts "Wrote JST file to #{out}" elsif type == "underscore" puts "Using Underscore" JstGenerator::Underscore.new(:dir_glob => glob, :jst_path => out).generate puts "Wrote JST file to #{out}" else puts "That templating library is not yet supported" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jstgenerator-0.1.1 | bin/jstgenerator |
jstgenerator-0.1.0 | bin/jstgenerator |