Sha256: a81b9d5b27da6b8c29e64fd0424f8e2a5047d991a2c58294ff7b50fcf254cd34
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
module Hotcell module Commands class Include < Hotcell::Command def process context, *arguments locals = arguments.extract_options! path = arguments.first context.scoped locals do template(path, context).render(context) end end def template path, context resolver = context.shared[:resolver] || Hotcell.resolver resolver.template(path, context) end end end end Hotcell.register_command include: Hotcell::Commands::Include
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hotcell-0.3.0 | lib/hotcell/commands/include.rb |
hotcell-0.2.0 | lib/hotcell/commands/include.rb |
hotcell-0.1.0 | lib/hotcell/commands/include.rb |