Socket
Book a DemoInstallSign in
Socket

laydown

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laydown

0.7.1
bundlerRubygems
Version published
Maintainers
1
Created
Source
#
#                            «=»
#                             ^
#                      $  «« ^¨^ »»  $
#                           '' ''
#        .
#       «=»
#        ^
#    «« ^¨^ »»
#     LAYDOWN
#     ''|'|''
#       | |                  |>
#       | |            ______|_
#       | |           | oo     |
#'''''''''''''''''''''''''''''******

Quick HTML5 layouts.

# $ 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', :@body_class],
  ga_code:      'google_analytics_id'
  )

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

@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 (c) 2011 Jostein Berre Eliassen. See LICENCE for details. (MIT licence)

FAQs

Package last updated on 27 Feb 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.