salmanahmad / silo

The Silo Programming Language
0 stars 0 forks source link

Implement SQL and XML Macros #79

Open salmanahmad opened 10 years ago

salmanahmad commented 10 years ago
<user type="teacher">
    <name>Salman</name>
    <age>150</age>
</user>

user(type="teacher")(
    name(Salman)
    age(150)
)

div(class="foo" id="super-secret-link" data-name="name")(

)
salmanahmad commented 10 years ago

SQL example:

sql(
    select distinct()
    from(users => u)
    join(accounts => a on users.id == accounts.user_id)
    where(
        a.max_spending > escape(some_variable) && noescape("some_raw_sql")
    )
)