Coder Social home page Coder Social logo

srcgen's People

Contributors

timmartin avatar tomerfiliba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

srcgen's Issues

python 2.6 compatibility

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 ?

No easy way to create struct variables

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.