Merge pull request #219 from peterdotjs/master
Add support for Marko templates.
This commit is contained in:
commit
5067eee2ef
|
@ -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
|
||||||
|
|
|
@ -28,6 +28,8 @@ Or Settings/Preferences ➔ Packages ➔ Search for `atom-beautify`
|
||||||
- [x] [Embedded Ruby (ERB)](https://github.com/Glavin001/atom-beautify/issues/80)
|
- [x] [Embedded Ruby (ERB)](https://github.com/Glavin001/atom-beautify/issues/80)
|
||||||
- Requires [htmlbeautifier](https://github.com/threedaymonk/htmlbeautifier)
|
- Requires [htmlbeautifier](https://github.com/threedaymonk/htmlbeautifier)
|
||||||
- [x] XML
|
- [x] XML
|
||||||
|
- [x] [Marko](https://github.com/raptorjs/marko)
|
||||||
|
- Requires [language-marko](https://github.com/raptorjs/atom-language-marko)
|
||||||
- [x] CSS, including
|
- [x] CSS, including
|
||||||
- [Sass](http://sass-lang.com/)
|
- [Sass](http://sass-lang.com/)
|
||||||
- [LESS](http://lesscss.org/)
|
- [LESS](http://lesscss.org/)
|
||||||
|
|
|
@ -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