Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Slim

< >

Slim is an open source template language created in 2010 by Andy Stone.

#105on PLDB 14Years Old 305Repos
Download source code:
git clone https://github.com/slim-template/slim
HomepageSource Code

A lightweight templating engine


Example from the web:
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
Example from hello-world:
doctype html head title Hello World body h1 Hello World
Example from Linguist:
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}

HackerNews discussions of Slim

title date score comments
Slim - A Fast, Lightweight Template Engine for Ruby 07/29/2011 5 7

- Build the next great programming language Add Issues About Search Keywords Livestreams Labs Resources Acknowledgements

Built with Scroll v154.3.0