Sha256: 81b56466b05c796af29ca4720f29d89c68459fab0c2023630522b1d1c9969e95
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 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'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wlang-3.0.0 | lib/wlang.rb |