Project Docs Github
Log in
ittf site docs concepts t artifactgenerators sample.html.ittf Edit
  • /ittf/site/docs/concepts/t/artifactgenerators/sample.html.ittf
  • /ittf/site/docs/concepts/t/section.html.ittf

/ittf/site/docs/concepts/t/artifactgenerators/sample.html.ittf (primary)

edit
                                            
1 $group
2 $
3 var sect = {
4 title: 'Sample artifact generator'
5 };
6 section( §)
7 h4 Code write artifact generator sample
8 ittf-panel
9 ittf
10 module
11 kind jsfile
12 var md = module.exports = {}
13 var myname = 'artifact rdbms.sqltables.main';
14 set md.gen
15 function
16 param model
17 param ctx
18 param callback
19 if model.wzElement !== 'rdbms'
20 return
21 callback
22 _ctx.error
23 @ myname + " error: the model paramater should be an 'rdbms' Wizzi Model"
24 @ model
25 ${'$'}foreach table in model.tables
26 _ ctx.a('TABLE', table.wzName)
27 _ ctx.w('declare table TABLE')
28 ...
29 _ callback(null, ctx)

/ittf/site/docs/concepts/t/section.html.ittf

edit
                                            
1 $group
2 $params §
3 article
4 . doc-title
5 id ${sect.id}
6 + ${sect.title}
7 . doc-summary
8 $hook
Save
Save & Refresh
Cancel