Add slim syntax test

This commit is contained in:
Mario Finelli 2021-08-15 15:30:36 -04:00 committed by David Peter
parent 9ef87dab27
commit 699f1e65cc
2 changed files with 40 additions and 0 deletions

View file

@ -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

View file

@ -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