Sha256: 9f84736cd6ad6bcc168bb1c0ebeaf4e94270611f8c442af9b1bfc79a5c2f1dcf

Contents?: true

Size: 1.46 KB

Versions: 2

Compression:

Stored size: 1.46 KB

Contents

    #
    #                            «=»
    #                             ^
    #                      $  «« ^¨^ »»  $
    #                           '' ''
    #        .
    #       «=»
    #        ^
    #    «« ^¨^ »»
    #     LAYDOWN
    #     ''|'|''
    #       | |                  |>
    #       | |            ______|_
    #       | |           | oo     |
    #'''''''''''''''''''''''''''''******

Bored of writing the same html boilerplate every time you make a new app?

How about something like this?

    # $ gem install laydown

 

    require 'laydown'

    layout = Laydown.new(
      charset:      'utf-8' # default
      title:        'A man in a #{@where}',
      description:  'Very interesting',
      favicon:      'pill.png',
      keywords:     'man, #{@keywords}',

      css:          ['site.css', :@css],
      js:           ['app.js', :@js],
      inline_js:    ['alert("#{@msg}");'],

      head:         '<meta soundtrack="Piazzolla">',
      body:         '#{yield}', # default
      body_class:   'dark',
      ga_code:      'ga-some-number'
      )

    # ----------------------------

    @where    = 'cave'
    @keywords = 'cave, interesting'
    @css      = 'somesheet.css'

    layout.render(self, :msg => 'hello') { '<p>body text</p>' }
    # => your html5 layout

### Features

* Fast
* Small footprint
* Built on Temple and Tilt

### Copyright

Copyright (c) 2011 Jostein Berre Eliassen.
See LICENCE for details. (MIT licence)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
laydown-0.6.1 README.md
laydown-0.6.0 README.md