4.1.2 • Published 5 years ago
@marko/compile v4.1.2
Utility to compile Marko templates to JavaScript.
CLI
Getting Started
npm install @marko/compile
marko-compile template.markoor
npx @marko/compile template.markoExample
marko-compile --server ./components/my-component.marko
marko-compile --browser ./components/my-component.markoOptions
--server: Compiles a Marko file to render html.--browser: Compiles a Marko file to render vdom.--files --file -f *: Provide a pattern to match marko file(s).--ignore: Provide a pattern to exclude files from being compiled.--clean: Deletes any compiled.marko.jsfiles.
API
Installation
npm install @marko/compileExample
import compile from "@marko/compile";
compile({
files: "./components/**/*.marko"
}).then(() => {
// All files are written to disk.
console.log("Compiled all files");
});Options
Options are the same as the CLI options.
4.1.2
5 years ago
4.1.1
5 years ago
4.1.0
6 years ago
4.0.2
6 years ago
4.0.1
6 years ago
4.0.0
7 years ago
3.4.0
7 years ago
3.3.2
7 years ago
3.3.1
7 years ago
3.3.0
7 years ago
3.2.1
7 years ago
3.2.0
7 years ago
3.2.0-alpha.86e5e3fd
7 years ago
3.2.0-alpha.c58c19ad
7 years ago
3.2.0-alpha.1d047e73
7 years ago
3.2.0-alpha.8b9e8d01
7 years ago
3.2.0-alpha.7b0fb4d9
7 years ago
3.2.0-alpha.8a9b7cfb
7 years ago
3.2.0-alpha.0ef43a53
7 years ago
3.2.0-alpha.3ce1f0bf
7 years ago
3.2.0-alpha.9a8d717c
7 years ago
3.2.0-alpha.dbc977e6
7 years ago
3.2.0-alpha.d4537edf
7 years ago
3.2.0-alpha.857c30a3
7 years ago
3.2.0-alpha.8eef2cbb
7 years ago
3.2.0-alpha.b0007ff1
7 years ago
3.2.0-alpha.b1d4df7e
7 years ago
3.2.0-alpha.2677ee4f
7 years ago
3.1.0
8 years ago
3.0.1
8 years ago
3.0.0
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.0
8 years ago