Sha256: 2609e9517ff17744584411483003d0179e21b61a0a86bb2d360012b907cb4863

Contents?: true

Size: 631 Bytes

Versions: 3

Compression:

Stored size: 631 Bytes

Contents

!!!
%html
  
  %head
    %title
      = content_for?(:title) ? yield(:title) : "Untitled"
    %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
    - stylesheet "<%= file_name %>"
    - javascript :defaults
    = csrf_meta_tag
    = yield(:stylesheets)
  
  %body
    #container
      - flash.each do |name, msg|
        = content_tag :div, msg, :id => "flash_#{name}"
      
      - if show_title?
        %h1= yield(:title)
      
      = yield
      
    = yield(:javascripts)
    - if content_for?(:onload_scripts)
      :javascript
        $(document).ready(function() { #{yield(:onload_scripts)} });

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
niftier-generators-0.1.2 lib/generators/niftier/layout/templates/layout.html.haml
niftier-generators-0.1.1 lib/generators/niftier/layout/templates/layout.html.haml
niftier-generators-0.1.0 lib/generators/niftier/layout/templates/layout.html.haml