latte-lang
v2.0.0
Published
An elegant, lispy, markup language
Downloads
3
Maintainers
Readme
Latte
Latte is a elegant, lispy, markup language with structure similar to languages like JSON and XML, but with an S Expression-like syntax.
Usage
const latte = require('latte-lang');
const fs = require('fs');
const obj = latte.parse(fs.readFileSync('test.latte', {encoding: 'utf-8'}));
Example
/*
multiline
comment
*/
/* basic comment */
/* variable */
hello "world"
/* variable with array, commas are optional */
groceries [ "apples", "oranges", "milk" ]
/* variable with object */
settings {
adminMode true
enableRegistration false
}
/*
valid values:
strings, integers, floats, booleans, arrays, objects, null
*/