summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.slim
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-06-07 07:58:54 -0700
committerTim Hatch <tim@timhatch.com>2014-06-07 07:58:54 -0700
commit32ceb8d947ab8efa9a37543a88a9428aaeacc8a9 (patch)
tree8b52b931ede55ef56e96b3eb41e4cf30f822ee34 /tests/examplefiles/example.slim
parentdfdf0de2da30f0626706c5f3ec9f3c3153c69917 (diff)
parent1725e215f9833d271462ccc7d3bd5fc7c0e41bab (diff)
downloadpygments-32ceb8d947ab8efa9a37543a88a9428aaeacc8a9.tar.gz
Merged in krasul/pygments-main/swift (pull request #371)
Initial Swift lexer
Diffstat (limited to 'tests/examplefiles/example.slim')
-rw-r--r--tests/examplefiles/example.slim31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/examplefiles/example.slim b/tests/examplefiles/example.slim
new file mode 100644
index 00000000..0e209200
--- /dev/null
+++ b/tests/examplefiles/example.slim
@@ -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 (C) #{year} #{author}