From 699f1e65cc0bfad3af620c8b9ccffe6c2bd6f217 Mon Sep 17 00:00:00 2001 From: Mario Finelli Date: Sun, 15 Aug 2021 15:30:36 -0400 Subject: [PATCH] Add slim syntax test --- tests/syntax-tests/highlighted/Slim/test.slim | 20 +++++++++++++++++++ tests/syntax-tests/source/Slim/test.slim | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 tests/syntax-tests/highlighted/Slim/test.slim create mode 100644 tests/syntax-tests/source/Slim/test.slim 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