mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Ignore attributes on the static tag
This commit is contained in:
parent
592ba7337b
commit
e8c3c390d0
@ -60,7 +60,7 @@
|
||||
"events": "^1.0.2",
|
||||
"events-light": "^1.0.0",
|
||||
"he": "^1.1.0",
|
||||
"htmljs-parser": "^2.3.0",
|
||||
"htmljs-parser": "^2.3.1",
|
||||
"lasso-caching-fs": "^1.0.1",
|
||||
"lasso-modules-client": "^2.0.3",
|
||||
"lasso-package-root": "^1.0.1",
|
||||
|
||||
@ -155,7 +155,10 @@
|
||||
]
|
||||
},
|
||||
"<static>": {
|
||||
"code-generator": "./static-tag"
|
||||
"code-generator": "./static-tag",
|
||||
"parse-options": {
|
||||
"ignoreAttributes": true
|
||||
}
|
||||
},
|
||||
"<unless>": {
|
||||
"node-factory": "./unless-tag",
|
||||
|
||||
1
test/autotests/render/static-var-complex/expected.html
Normal file
1
test/autotests/render/static-var-complex/expected.html
Normal file
@ -0,0 +1 @@
|
||||
<div>true</div>
|
||||
3
test/autotests/render/static-var-complex/template.marko
Normal file
3
test/autotests/render/static-var-complex/template.marko
Normal file
@ -0,0 +1,3 @@
|
||||
static var startDate = new Date();
|
||||
|
||||
<div>${startDate instanceof Date}</div>
|
||||
Loading…
x
Reference in New Issue
Block a user