Skip to content
Lafras edited this page Jan 31, 2015 · 4 revisions

Quicc is a very/almost declarative syntax, procedural elements exist in the script of buttons or in-line SQL script code.

The syntax is designed to be compatible with SQL and HTML environments.

The .quicc file is a html file fragment, your application .quicc files wont have <html><head></head><body> tags as it is provided in the Framework (app.html in the case of UI1).

You can start your file with any HTML code such as <div align="center"><h1>Hello world</h1></div>.

Quicc uses <# ... /> to escape out of HTML mode (Similar to PHP that uses ... ?> or javascript that uses <script type="text/javascript" ....)

Alpha notice - we are working towards a simplified unified syntax for the following 2 types of statement.

The basic statement is a statement with some simple optional qualia effective only on that statement. whereas a complex statement is basic statement plus fields where each field has its own qualia and inherits qualia from the qualic context of the statement.

The basic statements have a simple ini style similar to normal HTML, key="value" where the quotes are optional for single word parameters for example a tab container is <#Container Style=Tab tab=Maintenance />

More complex statements (like table or model) use a relaxed JSON syntax staring with a #:, with optional quotes for keys, and mandatory quotes for all values except, a few key value short cuts (yes,no,y,n,A for Action ,E for Edit ,V for View, L for link H for Hide and T for Type).

In complex statements the SQL comment -- is used as a context switch between SQL code and Qualia.

Complex statement qualia that works on the statement is : --{json} Complex statement qualia that works on the field is : --:{name:"name",more json}

If the name field can be implied(extracted by the framework using regex) from the SQL code that precedes the -- then the field qualia will simply be --:{json}

Any simple statement can also be expressed (less elegantly ) in a complex statement syntax. for example <#:Container --{Style:"Tab",tab:"Maintenance"} />

#Summery The purpose of the syntax is to extract SQL statements,controls and their qualia from the html background.

Clone this wiki locally