Commit Graph

25 Commits (ec644c7bf938300fc35cc293f7b068fd74cac3a3)

Author SHA1 Message Date
James Hodgkinson ec644c7bf9
refactor: print errors instead of panicking (#40)
* minor tweaks and error handling

* adding quotes around messages

* restoring test

* Adding a 'sad path' test

* Reverting a change and updating a message.
1 year ago
AlianBenabdallah 8a3928f0e7
Make `replace_template` and content of `utils.rs` public (#6) 2 years ago
sgoudham 5da7959545
refactor: Remove 'Default' from #derive[] & Log out error in sad path test 3 years ago
sgoudham b779499d18
refactor: Remove 'Clone' from #derive[] 3 years ago
sgoudham 7951c02445
[TEM #2] - Add sad path test 3 years ago
sgoudham 843021a0ca
[TEM #2] - Update Args::from_capture() comments 3 years ago
sgoudham a482d458f4
[TEM #2] - Add FileReader trait for testing 3 years ago
sgoudham d0dbd9b2d5
[TEM #2] - Update default value syntax to `[[# .. ]]` 3 years ago
sgoudham 0839dceac1
[TEM #2] - Add happy path component tests, Improve regex, Add comments, 3 years ago
sgoudham a6fc4c216b
[TEM #2] - Change default arg syntax to `{{$ ... }}` 3 years ago
sgoudham 14189f92ba
[TEM #2] - Remove TemplateArgsIter 3 years ago
sgoudham be57f6c11b
[TEM #2] - Allow default values in template files 3 years ago
sgoudham 53da878bf3
[TEM #1] - Remove dependency on aha-corasick 3 years ago
sgoudham 913d8edd7a
[TEM #1] - Stop using Ahacorasick and now replace arguments manually 3 years ago
sgoudham 9c32fabb50
[TEM #1] - Rename method 'substitute_args_in_template' -> 'replace_args' 3 years ago
sgoudham d405808a9b
[TEM #1] - Add TemplateArgsIter 3 years ago
sgoudham 00879a22d1
[TEM #1] - Refactor method 'replace' -> 'replace_template' 3 years ago
sgoudham 7088cc2c6e
[TEM #1] - Add ARGS regex and use HashMap<String, &str> instead of (Vec<String>, Vec<String>) 3 years ago
sgoudham 75e7609610
[v0.1.0] - Improve regex to capture newlines & add tests 3 years ago
sgoudham cde3f454dc
[v0.1.0] - Add some tests 3 years ago
sgoudham 0a7e6fd504
[v0.1.0] - Separate all links logic into links.rs 3 years ago
sgoudham 140ff41369
[v0.1.0] - Implement Minimum Viable Product 3 years ago
sgoudham c28a60c500
Remove use of 'dyn' to improve efficiency 3 years ago
sgoudham 767fb66c03
Create proper skeleton 3 years ago
Hammy 7f2a393afb Setup cargo project skeleton 3 years ago