Anki/rslib
llama ef94bf1cb0
Add support for html comments to template syntax (#3662)
* add support for comments to templates

* add tests

* add support for comments to CardLayout

* fix lints

* revert current impl

* extract parsing logic from legacy_text_token

* add support for comments to templates

* add tests

* refactor take_until_handlebar_start_or

* remove redundant rest

* Require full subclause match when locating next token (dae)

* Rework legacy template handling (dae)

The handlebar parser is now an instance method of a TemplateMode
enum, allowing us to avoid duplicate code for the legacy code path,
and the necessity to box up the iterator.

This does result in a change in behaviour: when the user has specified
the alternate syntax, the standard syntax will no longer be accepted.

* Remove stale comment (dae)
2025-01-09 23:35:48 +11:00
..
benches Update Rust and Python deps (#2567) 2023-07-01 18:26:43 +10:00
i18n Bump Rust to 1.81 for latest CVE 2024-09-05 12:39:59 +07:00
io Fix flaky tests (#3541) 2024-11-05 18:23:50 +10:00
linkchecker lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
process Corrected minor non-idiomatic snippet of code (#3108) 2024-04-01 11:34:23 +01:00
proto Bump Rust deps 2024-10-21 15:34:04 +10:00
proto_gen lazy_static → once_cell → stabilized versions (#3447) 2024-09-30 23:35:06 +10:00
src Add support for html comments to template syntax (#3662) 2025-01-09 23:35:48 +11:00
sync Add distroless Dockerfile and implement internal health check (#3366) 2024-08-29 17:05:33 +07:00
tests/support move linkchecker into separate crate 2021-12-20 17:27:43 +10:00
.gitignore initial Bazel conversion 2020-11-01 14:26:58 +10:00
bench.sh Update Rust and Python deps (#2567) 2023-07-01 18:26:43 +10:00
build.rs Fix building outside workspace 2023-07-02 18:22:44 +10:00
Cargo.toml Fully switch to File::set_times() from utime crate (#3503) 2024-10-16 02:35:37 +10:00
README.md Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
rust_interface.rs Update nightly formatter 2023-09-02 16:13:50 +10:00

Anki's Rust code.