handlebars-rust
fluent-templates
handlebars-rust | fluent-templates | |
---|---|---|
12 | 2 | |
1,202 | 131 | |
- | - | |
8.1 | 7.1 | |
about 1 month ago | 11 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
handlebars-rust
-
Introducing SQLPage : write websites entirely in SQL
handlebars to create the HTML templates of all the built-in components
-
Server-side rendering in Rust - a Dall.E use-case
handlebars-rust, based on Handlebars
-
Full-Stack-Rust: Which approach in Frontend?
Handlebars/guide/#what-is-handlebars)
-
I made a template sync tool!
filling out templates inside files using Handlerbars
-
Hey Rustaceans! Got an easy question? Ask here (51/2021)!
Would Handlebars-Rust be good for parsing non-Rust files? Or is there another templating engine built in Rust that I should use?
-
Is Rust's Handlebars implementation the right tool for this?
I am learning Rust currently, so to improve my skills, I am considering using its Handlebars implementation.
-
Deploy a Jamstack site on AWS Lambda with API Gateway in 10 minutes or less 💨
If you paid attention to the function code above, it might have occurred to you that the assets we serve don't have to be completely static. For example we could instead embed a handlebars template or similar & render it with the handlebars crate, allowing us "semi-dynamic" content for lack of a better name.
-
Basic CRUD with rust using tide - front-end with tera
Tera is a templating engine, inspired by Jinja2 and Django. There are other options like handlerbars and askama, but in this case I prefer to use tera because I'm familiarized with the syntax.
-
Accessing Handlebars variables in an outer scope
This weekend I learned some unfamiliar behaviors with the way Handlebars handles nested variable scopes. I typically use Handlebars via the handlebars-rust implementation which aims to maintain nearly one to one compatibility with the JavaScript implementation. They have block scope helpers such as #each and #with, both of which create an inner scope for variable resolution. Unfortunately, the syntax can be quite unintuitive for accessing outer scope once in those nested scopes.
-
What's everyone working on this week (26/2021)?
I have been tweaking and fixing issues with newline stripping feature for handlebars: https://github.com/sunng87/handlebars-rust/pull/448/files
fluent-templates
- fluent-templates: Easily add Fluent to your Rust project.
-
Rosetta - Easy-to-use Rust i18n library based on code generation.
FWIW, if you're interested in a higher level API for fluent. I wrote fluent-templates for exactly this use case. It provides both compile-time and run-time localisation.
What are some alternatives?
tera - A template engine for Rust based on Jinja2/Django
gutenberg - A fast static site generator in a single binary with everything built-in. https://www.getzola.org
askama - Type-safe, compiled Jinja-like templates for Rust
axum-template - Layers, extractors and template engine wrappers for axum based Web MVC applications
panamax - Mirror rustup and crates.io repositories, for offline Rust and cargo usage.
rosetta - Easy to use Rust i18n library based on code generation
sycamore - A library for creating reactive web apps in Rust and WebAssembly
fluent.js - JavaScript implementation of Project Fluent
tide-tera
warp-git - Testbed for using warp to serve a git repository
rust-psvita - Project to build PS Vita apps in rust
bard - Markdown-based songbook compiler.