Comments (3)
Huh, I guess there's some subtlety in the parser relating to the combination of a path, the macro call and the filter. Care to submit a PR?
from askama.
Sure, I'll take a jab at it.
from askama.
Macro invocations are parsed specially, but they should actually be simply suffix expressions, and be handled like normal function calls:
askama/askama_derive/src/parser/expr.rs
Lines 256 to 270 in c9613ff
from askama.
Related Issues (20)
- 0.12.1 only allow lower-case variable name in template HOT 5
- Keep the template source code portion corresponding to each AST token HOT 9
- Allow to have namespace for macros HOT 1
- Allowing imports and macro declaration everywhere? HOT 2
- I could not give relative path to template on linux but can give on windows HOT 7
- Issue
- Regression in askama_parser 0.2.0 update HOT 14
- Composing templates HOT 3
- 8e03fa6132669383a763d628b7443d1758b50400 HOT 1
- Document the `fmt` filter HOT 3
- Can't render simple template. Axum integration. HOT 2
- Add support for filter section HOT 5
- Document how integration should be imported HOT 1
- Remove the need to import askama itself when using integration crates HOT 3
- Why if block does not work inside another block HOT 4
- Rust macro has no access to parameters passed into `{% macro f(param) %}` HOT 6
- div appear with its classes initially in case of an Option HOT 3
- Ignore templates in HTML comments to sidestep `no field ... exists` and other errors when design iterating HOT 3
- Conditional HTML attributes HOT 4
- Unify integration API HOT 1
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.