Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomasjang/grunt-ax-marko
marko grunt task
https://github.com/thomasjang/grunt-ax-marko
Last synced: 3 days ago
JSON representation
marko grunt task
- Host: GitHub
- URL: https://github.com/thomasjang/grunt-ax-marko
- Owner: thomasJang
- License: mit
- Created: 2015-07-22T08:42:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-21T19:47:52.000Z (over 8 years ago)
- Last Synced: 2024-11-06T05:04:59.154Z (10 days ago)
- Language: JavaScript
- Homepage:
- Size: 152 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
[![axisj-contributed](https://img.shields.io/badge/AXISJ.com-Contributed-green.svg)](https://github.com/axisj) ![](https://img.shields.io/badge/Seowoo-Mondo&Thomas-red.svg)
# grunt-ax-marko
> marko template render
## Getting Started
This plugin requires Grunt `~0.4.5`If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
```shell
npm install grunt-ax-marko --save-dev
```Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
```js
grunt.loadNpmTasks('grunt-ax-marko');
```## The "ax_marko" task
### Overview
In your project's Gruntfile, add a section named `ax_marko` to the data object passed into `grunt.initConfig()`.```js
grunt.initConfig({
ax_marko: {
default: {
options: {
preserveWhitespace: true // expected output whitespace
},
files: [
{
// src_root: "", [Enter when you try and try my watch until the folder under the src_root` `to dest` subfolder`]
src: "test/fixtures/*.html",
global_data: { // append data
layout_path: "../layouts/basic.marko" // src relative path
},
lang: {
ko: "test/lang/ko.json",
en: "test/lang/en.json"
},
// lang: "test/lang/ko.json", [Enter when do not use lang folder]
dest: "test/expected",
output_extension: "html"
}
]
}
},
});
```## marko
[Marko Readme](https://github.com/marko-js/marko/blob/master/README.md)