on master help sign in
Add slim syntax test
commit699f1e65cc0bfad3af620c8b9ccffe6c2bd6f217 authorMario Finelli <mario@finel.li> dateSun 15 Aug 2021, 15:30 (5 years ago) parent9ef87da
2 files changed+40
tests/syntax-tests/highlighted/Slim/test.slim+20 tests/syntax-tests/source/Slim/test.slim+20
tests/syntax-tests/highlighted/Slim/test.slimnew file+20
@@ -0,0 +1,20 @@
1+doctype html
2+html lang=locale
3+ head
4+ meta charset='utf-8'
5+ title #{@title ? "#{@title} | Testing" : 'Testing'}
6+ == stylesheet('app.css')
7+
8+ body
9+ header
10+ h1.title Testing
11+
12+ - @links.each do |link|
13+ a href=link.href
14+ =link.title
15+ div
16+ == yield
17+
18+ - if APP_ENV == 'production'
19+ footer
20+ p Testing
tests/syntax-tests/source/Slim/test.slimnew file+20
@@ -0,0 +1,20 @@
1+doctype html
2+html lang=locale
3+ head
4+ meta charset='utf-8'
5+ title #{@title ? "#{@title} | Testing" : 'Testing'}
6+ == stylesheet('app.css')
7+
8+ body
9+ header
10+ h1.title Testing
11+
12+ - @links.each do |link|
13+ a href=link.href
14+ =link.title
15+ div
16+ == yield
17+
18+ - if APP_ENV == 'production'
19+ footer
20+ p Testing