Yaml Parser (Atma Plugin)
The Plugin extends:
IncludeJS
with a custom loaderatma-io
with a custom middleware to read Yml files as Jsonatma-server
andAtma Toolkit
with aHTTPHandler
to serve compiled sources as Json
How to use
Embed into the Project
-
atma plugin install atma-loader-yml
This adds
atma-loader-less
npm dependency and thepackage.json
would look like: -
That's all. Now, you are ready to use yml instead of json in your project
Quick Try
-
install atma:
$ npm install atma -g
required once for plugin installation sugar -
install plugin:
$ atma plugin install atma-loader-yml
-
add
test.html
to the directory -
add
test.yml
-
start the server:
$ atma server
-
open the browser:
http://localhost:5777/test.html
(c) MIT License - Atma.js Project