Module: Tilt::PapercraftTemplate::SiropExtension
- Included in:
- Tilt::PapercraftTemplate
- Defined in:
- lib/tilt/papercraft.rb
Instance Method Summary collapse
-
#get_source(fn) ⇒ Object
We override the Sirop get source in order to have access to the template source code when the template is compiled.
Instance Method Details
#get_source(fn) ⇒ Object
We override the Sirop get source in order to have access to the template source code when the template is compiled.
14 15 16 17 18 |
# File 'lib/tilt/papercraft.rb', line 14 def get_source(fn) return Tilt::PapercraftTemplate.file_load(fn) if fn.match(/@tilt\-/) super end |