Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

revert filename change

  • Loading branch information...
commit 5bd74f2f5d472fef360a5b35900493d2c72f2f8f 1 parent 25019b9
@contra contra authored
View
3  lib/main.coffee
@@ -13,10 +13,11 @@ module.exports =
# Jade compile to function string
jopts =
+ filename: opt.filename
client: true
compileDebug: opt.development
contents = String contents # for fs buffers
- src = String jade.compile contents, opt.filename, jopts
+ src = String jade.compile contents, jopts
if opt.rivets # wrap with rivets conveience function
src = """
View
2  package.json
@@ -1,7 +1,7 @@
{
"name":"jaded",
"description":"Collection of Jade plugins",
- "version":"0.0.7",
+ "version":"0.0.8",
"homepage":"http://github.com/wearefractal/jaded",
"repository":"git://github.com/wearefractal/jaded.git",
"author":"Fractal <contact@wearefractal.com> (http://wearefractal.com/)",
View
2  test/build
@@ -1 +1 @@
-../bin/jaded -i in -o out -dr
+../bin/jaded -r -i in -o out
View
1  test/in/incl.jade
@@ -0,0 +1 @@
+p #{sik}
View
4 test/in/login.jade
@@ -16,4 +16,6 @@
#placebid
h2 Change bid
input(type="text", value='${auction.bidder}')
- input(type="text", value='${auction.bid}')
+ input(type="text", value='${auction.bid}')
+
+include incl
View
1  test/out/incl.js
@@ -0,0 +1 @@
+function anonymous(target,o,op){return op||(op="html"),rivets.bind($(target)[op](function anonymous(locals,attrs,escape,rethrow,merge){attrs=attrs||jade.attrs,escape=escape||jade.escape,rethrow=rethrow||jade.rethrow,merge=merge||jade.merge;var buf=[];with(locals||{}){var interp;buf.push("<p>"+escape((interp=sik)==null?"":interp)+"</p>")}return buf.join("")}(o))[0],o)}
View
18 test/out/login.js
@@ -1,17 +1 @@
-function anonymous(target, o, op) {
- if (!op) {
- op = "html";
- }
- return rivets.bind($(target)[op](function anonymous(locals, attrs, escape, rethrow, merge) {
- attrs = attrs || jade.attrs;
- escape = escape || jade.escape;
- rethrow = rethrow || jade.rethrow;
- merge = merge || jade.merge;
- var buf = [];
- with (locals || {}) {
- var interp;
- buf.push('<div id="auction"><h1 data-text="auction.title"></h1><img data-src="auction.image_url"/><br/><span data-text="auction.timeRemaining | seconds" data-hide="auction.ended"></span><p data-show="auction.endingSoon">Hurry up! This auction is ending soon.</p><p data-show="auction.ended">This auction is over.</p><dl><dt>Highest Bid:</dt><dd data-text="auction.bid | currency"></dd><dt>Bidder:</dt><dd data-text="auction.bidder"></dd></dl></div><div id="placebid"><h2>Change bid</h2><input type="text" data-value="auction.bidder"/><input type="text" data-value="auction.bid"/></div>');
- }
- return buf.join("");
- }(o))[0], o);
-}
+function anonymous(target,o,op){return op||(op="html"),rivets.bind($(target)[op](function anonymous(locals,attrs,escape,rethrow,merge){attrs=attrs||jade.attrs,escape=escape||jade.escape,rethrow=rethrow||jade.rethrow,merge=merge||jade.merge;var buf=[];with(locals||{}){var interp;buf.push('<div id="auction"><h1 data-text="auction.title"></h1><img data-src="auction.image_url"/><br/><span data-text="auction.timeRemaining | seconds" data-hide="auction.ended"></span><p data-show="auction.endingSoon">Hurry up! This auction is ending soon.</p><p data-show="auction.ended">This auction is over.</p><dl><dt>Highest Bid:</dt><dd data-text="auction.bid | currency"></dd><dt>Bidder:</dt><dd data-text="auction.bidder"></dd></dl></div><div id="placebid"><h2>Change bid</h2><input type="text" data-value="auction.bidder"/><input type="text" data-value="auction.bid"/></div><p>'+escape((interp=sik)==null?"":interp)+"</p>")}return buf.join("")}(o))[0],o)}
Please sign in to comment.
Something went wrong with that request. Please try again.