summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli <mario@finel.li>2021-08-15 15:30:36 -0400
committerDavid Peter <sharkdp@users.noreply.github.com>2021-08-16 06:16:53 +0200
commit699f1e65cc0bfad3af620c8b9ccffe6c2bd6f217 (patch)
tree5be3049ce37d2e544d52a907acd830a988e6435b
parent9ef87dab272dcacd0e2687d163c8c065022d930d (diff)
Add slim syntax test
-rw-r--r--tests/syntax-tests/highlighted/Slim/test.slim20
-rw-r--r--tests/syntax-tests/source/Slim/test.slim20
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/Slim/test.slim b/tests/syntax-tests/highlighted/Slim/test.slim
new file mode 100644
index 00000000..2a157a03
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Slim/test.slim
@@ -0,0 +1,20 @@
+doctype html
+html lang=locale
+ head
+ meta charset='utf-8'
+ title #{@title ? "#{@title} | Testing" : 'Testing'}
+ == stylesheet('app.css')
+
+ body
+ header
+ h1.title Testing
+
+ - @links.each do |link|
+ a href=link.href
+ =link.title
+ div
+ == yield
+
+ - if APP_ENV == 'production'
+ footer
+ p Testing
diff --git a/tests/syntax-tests/source/Slim/test.slim b/tests/syntax-tests/source/Slim/test.slim
new file mode 100644
index 00000000..e52f70dd
--- /dev/null
+++ b/tests/syntax-tests/source/Slim/test.slim
@@ -0,0 +1,20 @@
+doctype html
+html lang=locale
+ head
+ meta charset='utf-8'
+ title #{@title ? "#{@title} | Testing" : 'Testing'}
+ == stylesheet('app.css')
+
+ body
+ header
+ h1.title Testing
+
+ - @links.each do |link|
+ a href=link.href
+ =link.title
+ div
+ == yield
+
+ - if APP_ENV == 'production'
+ footer
+ p Testing