Added support Marko templates.

This commit is contained in:
Peter Shin 2015-02-21 12:27:39 -08:00
parent 42382c0e56
commit aa06255e6f
8 changed files with 33 additions and 4 deletions

View File

@ -14,7 +14,7 @@ notifications:
script: sh build-package.sh
env:
- APM_TEST_PACKAGES="language-typescript language-csharp"
- APM_TEST_PACKAGES="language-typescript language-csharp language-marko"
before_install:
# Update Homebrew

View File

@ -0,0 +1,8 @@
<if test="data.items">
<for each="item in data.items">
<div>${item.name}</div>
</for>
</if>
<else>
content
</else>

View File

@ -0,0 +1,8 @@
<if test="data.items">
<for each="item in data.items">
<div>${item.name}</div>
</for>
</if>
<else>
content
</else>

View File

@ -0,0 +1,6 @@
<if test="${data.items}">
content
</if>
<else>
content
</else>

View File

@ -0,0 +1,6 @@
<if test="${data.items}">
content
</if>
<else>
content
</else>

View File

@ -410,7 +410,7 @@ module.exports =
beautifyHTML ?= require("js-beautify").html
text = beautifyHTML(text, self.getOptions("html", allOptions))
beautifyCompleted text
when "HTML (Liquid)", "HTML", "XML"
when "HTML (Liquid)", "HTML", "XML", "Marko"
beautifyHTML ?= require("js-beautify").html
text = beautifyHTML(text, self.getOptions("html", allOptions))
beautifyCompleted text

View File

@ -117,6 +117,7 @@
"editorconfig",
"yaml",
"front matter",
"jekyll"
"jekyll",
"marko"
]
}

View File

@ -21,7 +21,7 @@ describe "BeautifyLanguages", ->
"java", "javascript", "json", "less",
"mustache", "objective-c", "perl", "php",
"python", "ruby", "sass", "sql",
"typescript", "xml", "csharp", "gfm"
"typescript", "xml", "csharp", "gfm", "marko"
]
beforeEach ->