
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
fleetvue
Advanced tools
A powerful Vue.js-like templating engine for Python using Jinja2. FleetVue brings the familiar Vue.js syntax to Python while leveraging the robust features of Jinja2.
p- directivespip install fleetvue
from fleetvue import render_template
template = """
<div p-if="show">
<p p-text="message"></p>
</div>
<ul>
<li p-for="item in items" p-key="item.id">{{ item.name }}</li>
</ul>
"""
data = {
'show': True,
'message': 'Hello, World!',
'items': [{'id': 1, 'name': 'Item 1'}, {'id': 2, 'name': 'Item 2'}]
}
output = render_template(template, data)
print(output)
p-if: Conditional renderingp-else-if: Alternative conditionp-else: Fallback contentp-for: List renderingp-key: Unique key for list itemsp-bind: Dynamic attribute bindingp-text: Text content bindingp-html: HTML content bindingp-show: Conditional displayp-on: Event handlingp-model: Two-way data bindingp-pre: Skip compilationp-once: Render oncep-cloak: Hide until compiledfrom fleetvue import VueJinjaEngine
# Create a custom engine instance
engine = VueJinjaEngine(
sandboxed=True, # Use sandboxed environment for security
enable_async=True # Enable async support
)
# Add custom filters
engine.env.filters['uppercase'] = lambda x: str(x).upper()
# Use the engine
template = '<h1 p-text="title | uppercase"></h1>'
data = {'title': 'Hello World'}
output = engine.render_template(template, data)
import asyncio
from fleetvue import VueJinjaEngine
async def main():
engine = VueJinjaEngine(enable_async=True)
template = '<div p-text="message"></div>'
data = {'message': 'Hello World'}
output = await engine.render_template_async(template, data)
print(output)
asyncio.run(main())
from fleetvue import VueJinjaEngine
engine = VueJinjaEngine(sandboxed=True)
output = engine.render_template(template, data)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Vishnu Prasad - GitHub
FAQs
A Vue.js-like templating engine using Jinja2 for Python
We found that fleetvue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.