Comments (5)
You are right. Your workaround for the first issue indeed works. I have been using it since i updated my post and so far it has been without incidents so far.
from jinjax.
I can confirm this bugs.
The workoaround on Edit 3 to the issue 2 (component rendered as text) works fine.
If i understood your Edit 2, i was able to solve it in the same way. The solution:
On my App's file: init.py
catalog = Catalog(jinja_env=app.jinja_env)
catalog.add_folder("App/templates/Components")
catalog.add_folder("App/templates")
My directories:
-App
--static
--templates <-- Put JinjaX Components folder inside templates
---Components <-- This is my Jinjax folder
---Index.html
---Other.html
Edit: syntax errors.
from jinjax.
I investigated the cause of the issue and OMG, I was overwriting the default loader of templates of Flask! Thank you for the bug report.
from jinjax.
New release with the fix: https://github.com/jpsca/jinjax/releases/tag/0.27
from jinjax.
Thank you so much for taking the time and looking into these issues.
from jinjax.
Related Issues (20)
- Template Fragments HOT 1
- Issue with rendering hx-on:click
- Passing arguments and rendering wraps them in... one extra double quote in html? HOT 4
- Append new attributes by default, add option to override behaviour HOT 1
- Support for mounting React components HOT 1
- Asset root path does not honor catalog folder root
- Ability to customize <script> type HOT 1
- attrs.render() attributes result it nested quoted string: p=""v"" HOT 1
- Alpine compat: @ is removed from html props HOT 1
- maintenance status HOT 1
- Jinjax fails with python3.9 HOT 3
- Update docs? HOT 1
- Documentation site is broken HOT 1
- hx-boost not working with JinjaX HOT 2
- Using `catalog.get_middleware` with FastAPI HOT 3
- Question re how JinjaX interacts with Jinja2 pre-compiled templates (ModuleLoader) HOT 2
- How to disable jinjax for specific lines HOT 2
- How to pass arguments down to components on 0.40 HOT 4
- Regression: no longer able to have comments in component argument list HOT 4
- RX_INTER_COMMENTS regex issue
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 jinjax.