Change repo to generate both a library and a binary.
This repo will primary be a library, but for compliance testing it may make sense to have a binary operating in the same fashion as the node dustjs shim so I've set up this repo to generate both a library and a binary.
This commit is contained in:
9
src/bin.rs
Normal file
9
src/bin.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
extern crate nom;
|
||||
use parser::template;
|
||||
|
||||
mod parser;
|
||||
|
||||
fn main() {
|
||||
let parsed_template = template("{#foo.bar}hello {name}{/foo.bar}!");
|
||||
println!("{:?}", parsed_template);
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
extern crate nom;
|
||||
|
||||
mod parser;
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user