Skip to content

Commit

Permalink
Add slim syntax test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfinelli authored and sharkdp committed Aug 16, 2021
1 parent 9ef87da commit 699f1e6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/syntax-tests/highlighted/Slim/test.slim
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions tests/syntax-tests/source/Slim/test.slim
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 699f1e6

Please sign in to comment.