Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just use browserify to compile client side
Also adds UMD support and removes reliance on MAKE file
- Loading branch information
1 parent
00053c0
commit 72043cd
Showing
13 changed files
with
3,293 additions
and
3,149 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/*! | ||
* Jade - filters | ||
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca> | ||
* MIT Licensed | ||
*/ | ||
|
||
module.exports = filter; | ||
function filter(name, str, options) { | ||
if (typeof filter[name] === 'function') { | ||
var res = filter[name](str, options); | ||
} else { | ||
throw new Error('unknown filter ":' + name + '"'); | ||
} | ||
return res; | ||
} | ||
filter.exists = function (name, str, options) { | ||
return typeof filter[name] === 'function'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html><html><head></head><body><textarea id="input" placeholder="write jade here" style="width: 100%; min-height: 400px;">p | ||
author | ||
!= name</textarea><pre style="background: #ECECEC;width: 100%; min-height: 400px;"><code id="output"></code></pre><script src="../../jade.js"></script><script>var input = document.getElementById('input'); | ||
var output = document.getElementById('output'); | ||
setInterval(function () { | ||
jade.render(input.value, {name: 'Forbes Lindesay', pretty: true}, function (err, res) { | ||
if (err) throw err; | ||
output.textContent = res; | ||
}) | ||
}, 500)</script></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
!!! 5 | ||
html | ||
head | ||
body | ||
textarea#input(placeholder='write jade here', style='width: 100%; min-height: 400px;'). | ||
p | ||
author | ||
!= name | ||
pre(style='background: #ECECEC;width: 100%; min-height: 400px;') | ||
code#output | ||
script(src='../../jade.js') | ||
script | ||
var input = document.getElementById('input'); | ||
var output = document.getElementById('output'); | ||
setInterval(function () { | ||
jade.render(input.value, {name: 'Forbes Lindesay', pretty: true}, function (err, res) { | ||
if (err) throw err; | ||
output.textContent = res; | ||
}) | ||
}, 500) |
72043cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3
72043cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad you approve 😄. I think we may change to just using UMD directly for the runtime lib since it's dependency free.