Skip to content

Commit

Permalink
Change output operator from '-' to '='
Browse files Browse the repository at this point in the history
  • Loading branch information
baryshev committed Mar 1, 2012
1 parent e1cf4cd commit ca79c8f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -35,7 +35,7 @@ You may use JavaScript object as root.
var JUST = require('just');

var just = new JUST({ root : {
layout: '<html><head><title><%- title %></title></head><body><%*%></body></html>',
layout: '<html><head><title><%= title %></title></head><body><%*%></body></html>',
page: '<%! layout %><p>Page content</p>'
}
});
Expand All @@ -53,7 +53,7 @@ See full example in [examples](https://github.com/baryshev/just/tree/master/exam
### Output

```
<%- someVar %>
<%= someVar %>
```

### JavaScript code
Expand Down
2 changes: 1 addition & 1 deletion examples/view/layout.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title><%- title %></title>
<title><%= title %></title>
</head>
<body>
<header><%@ header %></header>
Expand Down
2 changes: 1 addition & 1 deletion just.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/just.js
Expand Up @@ -151,7 +151,7 @@ var JUST = function(newOptions) {
prefix = '\');' + line + ';this.blockEnd(';
postfix = '); this.buffer.push(\'';
break;
case '-' :
case '=' :
prefix = '\', (' + line + ', ';
postfix = '), \'';
break;
Expand Down

0 comments on commit ca79c8f

Please sign in to comment.