Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support for script(type="text/jade") as literal jade text

  • Loading branch information...
commit 1bbe6f48cb0532fcc972de2c8a6406755df1e97b 1 parent 13e7d34
@tj tj authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 lib/parser.js
View
9 lib/parser.js
@@ -385,8 +385,13 @@ Parser.prototype = {
// script special-case
if ('script' == tag.name) {
var type = tag.getAttribute('type');
- if (type && 'text/javascript' != type.replace(/^['"]|['"]$/g, '')) {
- tag.textOnly = false;
+ if (type) {
+ type = type.replace(/^['"]|['"]$/g, '');
+ if ('text/javascript' == type) {
+ tag.textOnly = false;
+ } else if ('text/jade' == type) {
+ tag.textOnly = true;
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.