Transcrypt might be a bit more popular than Jinja2. We know about 5 links to it since March 2021 and only 4 links to Jinja2. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.
This is a laudable effort, but I'm not a fan of shipping the entire interpreter. I looked around a few weeks ago and found https://transcrypt.org, which compiles your Python script to JS, so size is minimal. It's great for shipping small, internal tools/apps, I love how maintainable they are by all the Python devs, plus they're very fast to load and execute. - Source: Hacker News / almost 2 years ago
How is the Python being run by the browser? Several impressive projects bring Python to the browser, such as Brython, Transcrypt, Skulpt, Pyodide. PySketch uses Brython that compiles Python to JavaScript in the browser. You can take a look at this article about technologies and comparisons if you want to learn more. - Source: dev.to / about 2 years ago
I have a Python program that takes user input from the console and shows some results on the console, and I want the user to be able to type stuff into it instead of pre-recorded runs. How do I do that? I'm not really sure. You could have a copy of Python running on the server and have the front-end communicating with it, but you'd have to be sure it's secured -- there are a lot of dangerous Python commands... Source: over 2 years ago
For web apps: in my experience, there are tools that convert Python into JavaScript or try to make Python run inside a web browser like Brython and Transcrypt. These have been VERY awkward or painfully slow, so I would strongly discourage their use in practical web development. Source: almost 3 years ago
A while back, I posted about my initial foray into using Python to develop front-end web applications with React by using the Transcrypt transpiler. Python in the Browser Part of the initial learning process I went through was doing the official React tutorial, but using Python for the code instead of JavaScript. When I did that, I adhered to the structure of the application that was used in the tutorial... - Source: dev.to / over 3 years ago
I have a list say list[a][b] of length 10.I want to print from list[0][b] to list[10][b] and use it in jinja2 template. Source: about 2 years ago
I am using Flask with Jinja2 as templating language. Source: about 2 years ago
I'm trying to issue a POST request within a Jinja template in Flask. However, parameters are passed in via GET by default, and this particular method only accepts POST requests. Source: about 2 years ago
For our application above, we defined the string "My flask app" within our Python code. This was okay, as it was a single line, but as our front-end code grows, it will be cumbersome to define everything in our Python file. Flask allows for separation of concerns though so-called "templates." These are usually .html files, with some Python logic mixed in through the Jinja template engine language. Let's add a... - Source: dev.to / almost 3 years ago
Brython - Brython's goal is to replace Javascript with Python, as the scripting language for web browsers.
Pug - Pug is a robust, elegant, feature rich template engine for Node.js
Skulpt - Skulpt is an entirely in-browser implementation of Python.
Handlebars - Handlebars is a JavaScript template library that is, more or less, based on ...
Pyjs - pyjs is a Rich Internet Application (RIA) Development Platform for both Web and Desktop.
mustache - Mustache is a simple web template system with implementations available for ActionScript, C++...