Comments (4)
It's a good idea. I just tried it, but it appears the CARGO_MANIFEST_DIR
, while compiling an example, still points to the crate root rather than the example (even though the example has its own manifest). That makes it not a very self-contained example, unfortunately...
from askama.
I put a minimal askama + rocket example here in case anyone is looking for just that: https://gitlab.com/tobias47n9e/rocket_with_askama_example (WIP)
from askama.
Is this still an issue? I know repos like OrbTK where you can compile examples with cargo run --example widgets --release
.
Another option would be to make a repo just for askama examples or to use write examples in markdown with mdbook and render them with gh-pages.
from askama.
Yes, it is still an issue. A separate crate inside this repo could work, I suppose.
from askama.
Related Issues (20)
- Publish all crate versions books HOT 7
- if let chain has a weird behaviour HOT 2
- `include` is not very efficient HOT 3
- 0.13.0 release planning HOT 2
- Add tests for generated code HOT 2
- When using askama_axum, the automatic import of IntoResponse will preferentially import from askama_axum instead of axum::response. HOT 4
- Deny all / more reserved keywords as macro names
- Using block fragments as part of larger template HOT 4
- Unnecessary fields required when using blocks for partial rendering HOT 3
- Add `elif` keyword HOT 2
- Template Rendering of a Result<T + Display, E + Display> Cleanly HOT 3
- Feature/docs request: allow setting escape="none" in askama.toml HOT 2
- Include statement has no effect when used from a block fragment HOT 7
- Feedback for me HOT 3
- Add support for remaining pattern syntax (..) in templates
- Unable to publish package containing askama HOT 1
- rendering nested block broken by if-else-endif in outer block HOT 8
- Conditional compiling - features HOT 1
- Children like support for macros / included templates
- Lazy loading or runtime templates HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from askama.