Sha256: 36b6a002e65489481d26b263f081747de780d86d676937449543540c3cd3fbe7
Contents?: true
Size: 824 Bytes
Versions: 2
Compression:
Stored size: 824 Bytes
Contents
require "wlang/version" require "wlang/loader" # # WLang is a powerful code generation and templating engine # module WLang # These are allows block symbols SYMBOLS = "!^%\"$&'*+?@~#,-./:;=<>|_".chars.to_a # Template braces BRACES = ['{', '}'] # Defines an anonymous dialect on the fly. # # Example: # # d = WLang::dialect do # tag('$') do |buf,fn| buf << evaluate(fn) end # ... # end # d.render("Hello ${who}!", :who => "world") # # => "Hello world!" # def dialect(superdialect = WLang::Dialect, &defn) Class.new(superdialect, &defn) end module_function :dialect end # module WLang require 'wlang/compiler' require 'wlang/source' require 'wlang/template' require 'wlang/dialect' require 'wlang/scope' require 'wlang/html' require 'wlang/tilt' if defined?(::Tilt)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wlang-2.0.1 | lib/wlang.rb |
wlang-2.0.0 | lib/wlang.rb |