Slim is a template language created in 2011.
#197on PLDB | 12Years Old | 6.8kUsers |
1Books | 2Papers | 305Repos |
A lightweight templating engine
doctype html
html
head
title Slim Examples
meta name="keywords" content="template language"
meta name="author" content=author
javascript:
alert('Slim supports embedded javascript!')
body
h1 Markup examples
doctype html
head
title Hello World
body
h1 Hello World
doctype html
html
head
title Slim Examples
meta name="keywords" content="template language"
meta name="author" content=author
javascript:
alert('Slim supports embedded javascript!')
body
h1 Markup examples
#content
p This example shows you how a basic Slim file looks like.
== yield
- unless items.empty?
table
- for item in items do
tr
td.name = item.name
td.price = item.price
- else
p
| No items found. Please add some inventory.
Thank you!
div id="footer"
= render 'footer'
| Copyright 漏 #{year} #{author}
title | authors | year | publisher |
---|---|---|---|
The NLP Diet: Think Yourself Slim - For Good | Archer, Jeff | 2011 | Teach Yourself |
title | authors | year | citations | influentialCitations |
---|---|---|---|---|
Implementing UML associations in Java: a slim code pattern for a complex modeling concept | Dominik Gessenharter | 2009 | 16 | 0 |
Generating GO Slim Using Relational Database Management Systems to Support Proteomics Analysis | Getiria Onsongo and Hongwei Xie and T. Griffin and J. Carlis | 2008 | 5 | 0 |