gam

grunt-ax-marko

marko grunt task

Showing:

Popularity

Downloads/wk

0

GitHub Stars

3

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

1

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

axisj-contributed

grunt-ax-marko

marko template render

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

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:

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().

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial