You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'am the author of TaiTan-Orm ,
And template support is the most important feature.
I formally use rinja template engine, and now use askama instead.
now I can implement a Template Query like this:
#[derive(askama::Template,Template,Debug)]#[template(source="SELECT * FROM users WHERE name= :{name} {% if age.is_some() %} AND age = :{age} {% endif %}", ext="txt")]pubstructQuery{name:String,age:Option<i64>}
But it is ugly to write both askama::Template and Template,
And it wll be appreciate if there is any possible to make lib.rs/build_template public.
The text was updated successfully, but these errors were encountered:
Hm, that is not possible. A proc-macro crate can only export proc-macros. You would need access to askama_derive_standalone. I wonder if there would be other possible users for our code generator.
Hm, that is not possible. A proc-macro crate can only export proc-macros. You would need access to askama_derive_standalone. I wonder if there would be other possible users for our code generator.
Yes, what we actually needed is the code generator, and it will be a great improve if the code generator would be open and used by other library, like Taitan-ORM.
I'am the author of TaiTan-Orm
,
And template support is the most important feature.
I formally use rinja template engine, and now use askama instead.
now I can implement a Template Query like this:
But it is ugly to write both askama::Template and Template,
And it wll be appreciate if there is any possible to make lib.rs/build_template public.
The text was updated successfully, but these errors were encountered: