Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe committed Feb 3, 2011
1 parent e67c083 commit ddb75e6
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 48 deletions.
48 changes: 0 additions & 48 deletions README

This file was deleted.

45 changes: 45 additions & 0 deletions README.md
@@ -0,0 +1,45 @@
#
# «=»
# ^
# $ «« ^¨^ »» $
# '' ''
# .
# «=»
# ^
# «« ^¨^ »»
# LAYDOWN
# ''|'|''
# | | |>
# | | ______|_
# | | | oo |
#'''''''''''''''''''''''''''''******

# $ gem install laydown

Laydown is a simple template language for defining quick HTML5 layouts in Ruby. Never write the same old boilerplate again.

require 'laydown'

layout = Laydown.new do |_|
_.charset 'some crazy charset'
_.title 'A man in a cave'
_.description 'A man is sitting in a cave.'
_.keywords 'man, cave, mystery', @keywords
_.favicon '/maninacave.png'
_.css '/maninacave/style.css'
_.css @css, '/site.css'
_.js @js
_.inline_js 'alert("Grrr");'
_.head '<meta generator="FlushFlox Super Deluxe">'
_.ga_code 'UA-8079526-5' # google analytics
_.body_class @body_class
end

@css = 'somesheet.css'
@body_class = 'front'

layout.render(self) { '<p>this comes in the body</p>' }
# => your html5 layout

The block given to `Laydown.new` will be evaluated in the context passed to the `render` method.

0 comments on commit ddb75e6

Please sign in to comment.