mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Adds supports for Slim
This commit is contained in:
31
samples/Slim/sample.slim
Normal file
31
samples/Slim/sample.slim
Normal file
@@ -0,0 +1,31 @@
|
||||
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}
|
||||
Reference in New Issue
Block a user