Added support Marko templates.
This commit is contained in:
parent
42382c0e56
commit
aa06255e6f
|
@ -14,7 +14,7 @@ notifications:
|
||||||
script: sh build-package.sh
|
script: sh build-package.sh
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- APM_TEST_PACKAGES="language-typescript language-csharp"
|
- APM_TEST_PACKAGES="language-typescript language-csharp language-marko"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# Update Homebrew
|
# Update Homebrew
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
<if test="data.items">
|
||||||
|
<for each="item in data.items">
|
||||||
|
<div>${item.name}</div>
|
||||||
|
</for>
|
||||||
|
</if>
|
||||||
|
<else>
|
||||||
|
content
|
||||||
|
</else>
|
|
@ -0,0 +1,8 @@
|
||||||
|
<if test="data.items">
|
||||||
|
<for each="item in data.items">
|
||||||
|
<div>${item.name}</div>
|
||||||
|
</for>
|
||||||
|
</if>
|
||||||
|
<else>
|
||||||
|
content
|
||||||
|
</else>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<if test="${data.items}">
|
||||||
|
content
|
||||||
|
</if>
|
||||||
|
<else>
|
||||||
|
content
|
||||||
|
</else>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<if test="${data.items}">
|
||||||
|
content
|
||||||
|
</if>
|
||||||
|
<else>
|
||||||
|
content
|
||||||
|
</else>
|
|
@ -410,7 +410,7 @@ module.exports =
|
||||||
beautifyHTML ?= require("js-beautify").html
|
beautifyHTML ?= require("js-beautify").html
|
||||||
text = beautifyHTML(text, self.getOptions("html", allOptions))
|
text = beautifyHTML(text, self.getOptions("html", allOptions))
|
||||||
beautifyCompleted text
|
beautifyCompleted text
|
||||||
when "HTML (Liquid)", "HTML", "XML"
|
when "HTML (Liquid)", "HTML", "XML", "Marko"
|
||||||
beautifyHTML ?= require("js-beautify").html
|
beautifyHTML ?= require("js-beautify").html
|
||||||
text = beautifyHTML(text, self.getOptions("html", allOptions))
|
text = beautifyHTML(text, self.getOptions("html", allOptions))
|
||||||
beautifyCompleted text
|
beautifyCompleted text
|
||||||
|
|
|
@ -117,6 +117,7 @@
|
||||||
"editorconfig",
|
"editorconfig",
|
||||||
"yaml",
|
"yaml",
|
||||||
"front matter",
|
"front matter",
|
||||||
"jekyll"
|
"jekyll",
|
||||||
|
"marko"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ describe "BeautifyLanguages", ->
|
||||||
"java", "javascript", "json", "less",
|
"java", "javascript", "json", "less",
|
||||||
"mustache", "objective-c", "perl", "php",
|
"mustache", "objective-c", "perl", "php",
|
||||||
"python", "ruby", "sass", "sql",
|
"python", "ruby", "sass", "sql",
|
||||||
"typescript", "xml", "csharp", "gfm"
|
"typescript", "xml", "csharp", "gfm", "marko"
|
||||||
]
|
]
|
||||||
|
|
||||||
beforeEach ->
|
beforeEach ->
|
||||||
|
|
Loading…
Reference in New Issue