update
Former-commit-id: bdede6ed1b6f578f2ef046c338caf02d0b29d453 [formerly 7187de361b53e9c8ec121df379b762f2db736ea2] Former-commit-id: 447d58460fbbfd05ffe08428a1288e392637561d
This commit is contained in:
31
_embed/public/ace/demo/kitchen-sink/docs/slim.slim
Normal file
31
_embed/public/ace/demo/kitchen-sink/docs/slim.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
|
||||
link rel="icon" type="image/png" href=file_path("favicon.png")
|
||||
javascript:
|
||||
alert('Slim supports embedded javascript!')
|
||||
|
||||
body
|
||||
h1 Markup examples
|
||||
|
||||
#content
|
||||
p This example shows you how a basic Slim file looks.
|
||||
|
||||
== yield
|
||||
|
||||
- if items.any?
|
||||
table#items
|
||||
- for item in items
|
||||
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