branch: elpa/jade-mode
commit 0a9ddef0eb78f0369d93d587d2d9f4134da9c45b
Author: Travis Jefferson <[email protected]>
Commit: Travis Jefferson <[email protected]>
tweak example.jade so it'll actually render
- newer jade versions won't render !!!, and let's add a JSON file
to supply some local variables
---
example.jade | 4 ++--
example.json | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/example.jade b/example.jade
index 69f9376ecc..2a7b6f1543 100644
--- a/example.jade
+++ b/example.jade
@@ -1,4 +1,4 @@
-!!!
+doctype html
html(lang="en", class = ['classOne', 'classTwo'].join(','))
-// consult http://jade-lang.com for a full language reference
head
@@ -30,7 +30,7 @@ html(lang="en", class = ['classOne', 'classTwo'].join(','))
div.examples#javascript
- var a = 1;
- var helperFunction = function (a) { return (a === 1 ? 'singular' :
'plural'); };
- span= locals.someArray.join(', ')
+ span= someArray.join(', ')
span= a.toString() + helperFunction(a)
span#id.class(style = 'margin-bottom: 0;')=
"some_js_expression".split('_').join(' ')
#footer
diff --git a/example.json b/example.json
new file mode 100644
index 0000000000..46ddd7c7b7
--- /dev/null
+++ b/example.json
@@ -0,0 +1,3 @@
+{
+ "someArray": [ 1, "2", "three" ]
+}