ructe icon indicating copy to clipboard operation
ructe copied to clipboard

Rust Compiled Templates with static-file handling

Results 26 ructe issues
Sort by recently updated
recently updated
newest added

If I run `cargo test` on my app that uses ructe, I see the following failure. It looks like the generated `_utils.rs` file contains a code example that fails when...

It would be great if at some point ructe directly supported [Rocket](rocket.rs). It is a really nice rust web engine that is growing in popularity.

help wanted

I like the idea of using build.rs to implement cache busting for static files. I've used a hand coded technique similar to Ructe but instead of including the file in...

I've used to pass `&mut dyn Write` to the templates, but it does not compile any more due to `` bound on template functions lacking `?Sized`.

A possible solution to #85 . Questions / things to test: * [ ] Is `join_html` and `join_to_html` good names for the functions? * [x] Does `join_html` work with inline...

enhancement
help wanted

Add support for generating [subresource integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) hashes at build time * Add an `sri` feature, which depends on the `ssri` crate * Generate sha256, sha384, and sha512 SRI hashes for...

As suggested in #29. A keyword `@whitespace` can be used to switch whitespace handling between the tree modes `as-is`, `compact`, and `removed`. - [x] Implement the functionality. Set default mode...

enhancement
help wanted
question

I try to match the following enum with internal struct variants ```rust pub enum ValidationError { LengthOutOfBounds { min: usize, max: usize, }, InvalidName { invalid_chars: Vec, }, UniqueConstraintViolation, }...

It would be nice if templates could be rendered without using build scripts. The current approach is not very bad, but it could be more ergonomic with macros. The pro...