Closed sideffect0 closed 8 years ago
i want to output a different file ( css ) instead of js from transcrypt, from pythonic syntax is that possible?
Hi
Transcrypt translates Python to JS, it cannot output CSS. If I understand you properly, you want to use Python-like syntax to style pages. If you look at the ios_app demo, you'll see that all styling is just done in Python (so actually in JS). All style attributes can also be accessed dynamically from Python. That's how I try to do it most of the time since CSS and me don't wear well together.
As an alternative Alexander Tsepkov, creator of RapydScript, has made something called RapydCSS, that seems to go in the direction you indicate:
http://rapydscript.pyjeon.com/rapydcss
I have no experience with it.
@JdeH any way to transcrypt with React Native/React ? or electron
Yes, you can use react. There's a react demo in the demo directory. No experience with electron yet.
@JdeH any possiblities including more functions related to reactjs ? atleast it would be good if include option to add developer a plugin for transcrypt compiler like pytest plugin :) waiting for something like https://github.com/fxfactorial/ocaml-reactjs in transcrypt :)
Hi,
You mean something like 'require' for node.js? This already works (see demo):
Or do you mean something specifically Pythonic, e.g. automatically downloading modules from PyPi if they aren't yet installed? Problem is by far not all modules are suitable for Transcrypt.
Or am I completely missing your point? Please elaborate.
Kind regards Jacques