tomerfiliba / srcgen Goto Github PK
View Code? Open in Web Editor NEWThe semantic code generation framework
Home Page: http://srcgen.readthedocs.org/
License: MIT License
The semantic code generation framework
Home Page: http://srcgen.readthedocs.org/
License: MIT License
by @frallain
tomerfiliba/minima#1
tomerfiliba/minima#2
Thanks for the fix, it works for one context manager but in the example below (with 2 context managers), I've got this exception :
Traceback (most recent call last):
File "test.py", line 14, in <module>
with html as root:
File "C:\Users\l-fa229081.VRH026543\Downloads\python\hypertext\hypertext.py", line 78, in __get__
return _per_thread.stack[-1].__exit__
IndexError: list index out of range
from hypertext import *
with div.content as root:
h1.highlight("Welcome")
TEXT("This is my page")
print root
with html as root:
with head:
meta(http_equiv="Content-Type", content="text/html; charset=utf-8")
title("welcome to my page")
with body:
ATTR(id="body")
with div.content(id = "floop", data_role = "page").pretty:
TEXT("Hello, my <name> is")
strong("Bob")
TEXT("Also known as", em("Robert"))
UNESCAPED("and I <b>like</b>")
with ul:
for item in ["cats", "rats", "hats"]:
li(item)
print root
Is it a normal behaviour ?
I'm looking to fill in my generated code a struct as in:
struct my_type my_var = {
{1, "name"},
{2, "another name"},
};
There doesn't seem to be any way to implement that easily.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.