Module: Alchemy::LayoutHelper
- Defined in:
- app/helpers/alchemy/layout_helper.rb
Instance Method Summary collapse
Instance Method Details
#javascript(*args, &block) ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'app/helpers/alchemy/layout_helper.rb', line 24 def javascript(*args, &block) if block content_for(:inline_javascript) { block.call() } end if args args.map { |arg| content_for(:javascripts) { javascript_include_tag(arg) } } end return "" end |
#no_template ⇒ Object
15 16 17 |
# File 'app/helpers/alchemy/layout_helper.rb', line 15 def no_template _("No Template") end |
#stylesheet(*args) ⇒ Object
19 20 21 22 |
# File 'app/helpers/alchemy/layout_helper.rb', line 19 def stylesheet(*args) args.map { |arg| content_for(:stylesheets) { stylesheet_link_tag(arg) } } return "" end |