guidon 0.1.0

Library to initialize project from templates
docs.rs failed to build guidon-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: guidon-0.4.1

guidon

Documentation

guidon is a french word for handlebars.
guidon is a small library which aims to speed up project initialization with templates.

[dependencies]
guidon = "0.1"

Getting started

guidon performs templating based on handlebars templating system.
Files to be handles needs to have an .hbs extension. Folders can be templatized too : {{folder/subfolder}}

use guidon::Guidon;

fn main() {
  let mut guidon = Guidon::with_conf("path/to/template.toml").unwrap();
  guidon.apply_template("path/to/template/dir", "path/to/destination").unwrap();
}

The configuration file is structured as follows :

# Optional
# By default will pick the template to apply in a folder named template in the provided folder
use_template_dir = true
# Optional
# By default any missing substitution key will raise an error.
# If false, it will silently initialize the value withe an empty string.
use_strict_mode = true

# Key value pairs for template substitution
# Each occurrence of 
[variables]
test1 = "test 1"
test2 = "test 2"

Minimum rust version

TODO

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in guidon by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.