![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
lit-nunjucks
Advanced tools
Compile https://mozilla.github.io/nunjucks/ templates into standar lit-html.
Install the library
npm install lit-nunjucks
const { compile } = require('lit-nunjucks')
Givend the input
{% if authorized %}
Hello {{customer.name}}
{% endif %}
It will generate
function template({
authorized
}) {
return authorized && html`Hello ${customer.name}`;
}
Templates are backend tecnologies, Usually sever renders a template once with a given values. If use a template into a full front end app, everytime our data state change we have to re apply the template. This behaviout is costly and there are such a good alternatives there in order to performatly update the DOM with a new state (React, Vue, lit-html).
window
lit-html lets you write HTML templates in JavaScript, then efficiently render and re-render those templates together with data to create and update DOM. https://lit-html.polymer-project.org/
You've been looking for a more sophisticated templating engine for JavaScript. https://mozilla.github.io/nunjucks/
This project attempts to bring best of both worlds. Use jinja style templates into a front end app performatly.
Probably you don't.
FAQs
Nunjucks compiler to lit-html
The npm package lit-nunjucks receives a total of 26 weekly downloads. As such, lit-nunjucks popularity was classified as not popular.
We found that lit-nunjucks demonstrated a not healthy version release cadence and project activity because the last version was released 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.