Module: Card::Set::All::Haml::Format
- Extended by:
- Card::Set::AbstractFormat
- Includes:
- Format::HamlPaths
- Defined in:
- platypus/tmp/set/gem-defaults/mod004-format/all/haml.rb
Constant Summary
Constants included from Format::HamlPaths
Format::HamlPaths::TMPSET_REGEXP
Instance Method Summary collapse
-
#haml(*args, &block) ⇒ String
Renders haml templates.
-
#haml_partial(partial, locals = {}) ⇒ Object
Methods included from Format::HamlPaths
#deep_source, #each_template_path, #haml_block_locals, #haml_template_path, #haml_to_html, #template_location, #try_haml_template_path, #with_template_path
Instance Method Details
#haml(*args, &block) ⇒ String
Renders haml templates. The haml template can be passed as string or block or a symbol that refers to a view template.
48 49 50 51 52 53 54 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/haml.rb', line 48 def haml *args, &block if args.first.is_a? Symbol process_haml_template(*args) else process_haml(*args, &block) end end |
#haml_partial(partial, locals = {}) ⇒ Object
56 57 58 59 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/haml.rb', line 56 def haml_partial partial, locals={} locals[:template_path] ||= @template_path process_haml_template "_#{partial}".to_sym, locals end |