Commit Graph

19 Commits

Author SHA1 Message Date
Michael Pfaff 6e09ca7464 Refactor to support custom escaping schemes 2024-03-15 18:05:31 -04:00
Lev 4c554d1a57 Fix filename conflict 2023-10-21 14:09:00 -07:00
Newton Ni 01ba06707b Use timestamps for change detection
This commit changes the caching mechanism to use the timestamp of
all included templates instead of hashing the contents of the
root template.

The primary downside is that every build now has to parse, transform,
and resolve the input templates instead of just reading and hashing
the data--I didn't measure how much more expensive this is, but it
seems unavoidable if we need information about child templates.
Maybe a hacky regex-based approach could work as an alternative to
a complete parse.

On the bright side, this approach rebuilds parent templates correctly
when a child template has changed, and doesn't require garbage collection
for old compiled template files.
2023-10-02 13:21:29 -05:00
Kogia-sima c9e6449292 Add analyzer.rs
cc #53
2021-02-04 03:11:17 +09:00
Kogia-sima 7bab7ac0a5 fix: Workaround for incorrect cargo fingerprints
Note: This is a silly hack to prevent temporary artifacts to be tracked
by cargo. This behaviour depends on cargo's internal implementation, and
thus this workaround may suddenly stop working in the future. Another
better option should be considered.
2021-01-23 19:09:54 +09:00
Kogia-sima 15f397348a refactor: Organize source code for readability 2020-12-18 23:00:40 +09:00
Kogia-sima b420cc0161 feat: Implement Compiler::compile_str() function 2020-07-14 22:07:35 +09:00
Kogia-sima 65636d2ebc Suppress "Failed to remote artifact" error in rust-analyzer 2020-07-13 01:28:42 +09:00
Kogia-sima 2d994be4ff feat: Global configuration file 2020-06-15 05:36:39 +09:00
Kogia-sima 25364a6bcc Enhanced error message 2020-06-14 17:30:36 +09:00
Kogia-sima 98e11b1163 fix: Re-compile when child template is update. 2020-06-13 22:58:57 +09:00
Kogia-sima fd3d224067 Refactor source code with rustfmt and clippy
[skip ci]
2020-06-07 17:58:52 +09:00
Kogia-sima 61ff466976 Add `rm_whitespace` option 2020-06-07 13:00:28 +09:00
Kogia-sima 6d07c43876 Strip the brake line at end of file 2020-06-07 01:25:52 +09:00
Kogia-sima 7d77b755c6 Resolve child template path inside resolver 2020-06-07 00:43:10 +09:00
Kogia-sima 64ded9616a resolve to relative path in include! by default 2020-06-06 23:43:41 +09:00
Kogia-sima 12174ff5c5 Implement include! macro 2020-06-06 22:49:01 +09:00
Kogia-sima 420d83521c Add Config struct 2020-06-06 11:58:14 +09:00
Kogia-sima 08dacdd263 Add source code 2020-06-05 22:31:38 +09:00