/ittf/site/docs/concepts/t/wizzimetaplugins/introduction.html.ittf (primary)
1 $group2 $3 var sect = {4 title: 'Wizzi Plugins'5 };6 section( §)7 p Wizzi is a generation framework8 \b implemented by plugins.9 p Kernel modules themself have a10 \b pluggable architecture. The ${}11 to-plugin( wizzi-mtree )12 span ${} package is a plugin13 \b that implements an api for building ${}14 to-docs( tree structures )15 span ${} from ${}16 to-docs( ITTF documents)17 span .18 \b The ${}19 to-plugin( wizzi-repo )20 span ${} package is a plugin that implements21 \b an api for locating and retrieving ITTF documents.22 p A Wizzi Plugin exposes to the Wizzi factory the methods for retrieving its:23 ul24 li Wizzi Schema definitions25 li Wizzi Models and their factories26 li Wizzi Model transformers27 li Artifact generators28 p A plugin package must export the29 high-code( createFactoryPlugin )30 span method in its31 high-code( index.js )32 span file. The33 high-code( FactoryPlugin )34 span class instance returned to the caller35 \b must implement the36 high-code( wizzi-plugin.factoryPlugin )37 span ${} API (see below).38 ittf-panel39 title ITTF pseudo-code implementation of the createFactoryPlugin method40 ittf41 set module.exports42 {43 ...44 @ createFactoryPlugin45 function46 { wizziPackage47 { options48 [ items49 string pluginNameOrFile50 string pluginsBaseFolder51 default process.cwd()52 callback53 ...54 return55 _ callback56 @ null57 { factoryPlugin58 api-ref wizzi-plugin.factoryPlugin59 p A Wizzi Plugin should have a standard folder structure so that60 \b modules can be located given the short public name of61 \b the required item.62 ittf-panel63 title Wizzi Plugin standard folder structure64 ittf65 ...66 {package-name}67 package.json68 ...69 lib70 artifacts71 {schema-name}72 {artifact-name}73 gen74 main.js75 ...76 {transformer-name}77 trans78 main.js79 ...80 ...81 utils82 ...83 wizzi84 models85 {schema-name}-model.g.js86 {schema-name}-factory.g.js87 {schema-name}-schema.g.json88 ...89 index.js
/ittf/site/docs/concepts/t/section.html.ittf
1 $group2 $params §3 article4 . doc-title5 id ${sect.id}6 + ${sect.title}7 . doc-summary8 $hook
/ittf/site/docs/t/to-plugin.html.ittf
1 $group2 $params name, kind|@@null3 $4 // var xname = kind != 'nospace' ? ' ' + name + ' ' : name5 $if kind != 'nospace'6 span ${} ${}7 code8 class highlight-code9 a ${name}10 href https://github.com/stfnbssl/wizzi.plugins/tree/main/packages/wizzi.plugin.${name}11 target _blank12 $if kind != 'nospace'13 span ${} ${}
/ittf/site/docs/t/to-docs.html.ittf
1 a2 $params name3 $if name.toLowerCase() === 'mtree' || name.toLowerCase() === 'mtrees'4 a ${name}5 href ${wzCtx.Params.baseUrl}/docs/mtrees.html6 $elif name.toLowerCase() === 'ITTF Document' || name.toLowerCase() === 'ITTF Documents'7 a ${name}8 href ${wzCtx.Params.baseUrl}/docs/ittfdocuments.html9 $elif name === 'Template engine'10 a ${name}11 href ${wzCtx.Params.baseUrl}/docs/templateengine.html12 $elif name.toLowerCase() === 'jswizzi'13 a ${name}14 href ${wzCtx.Params.baseUrl}/docs/jswizzi.html15 $elif name.toLowerCase() === 'wizzi model' || name.toLowerCase() === 'wizzi models'16 a ${name}17 href ${wzCtx.Params.baseUrl}/docs/wizzimodels.html18 $elif name.toLowerCase() === 'wizzi schema' || name.toLowerCase() === 'wizzi schemas'19 a ${name}20 href ${wzCtx.Params.baseUrl}/docs/wizzischemas.html21 $elif name.toLowerCase() === 'wizzi model dom' || name.toLowerCase() === 'wizzi model doms'22 a ${name}23 href ${wzCtx.Params.baseUrl}/docs/wizzimodeldoms.html24 $elif name.toLowerCase() === 'model transformers'25 a ${name}26 href ${wzCtx.Params.baseUrl}/docs/modeltransformers.html27 $elif name.toLowerCase() === 'artifact generations'28 a ${name}29 href ${wzCtx.Params.baseUrl}/docs/artifacts.html30 $elif name.toLowerCase() === 'wizzi api' || name.toLowerCase() === 'wizzi.wizzifactory'31 a ${name}32 href ${wzCtx.Params.baseUrl}/docs/wizziapi.html33 $else34 h1 ERROR to-docs unknown ${name}
/ittf/site/docs/t/high-code.html.ittf
1 $group2 $params text, kind|@@null3 $if kind != 'nospace'4 span ${} ${}5 code6 class highlight-code7 + ${text}8 $if kind != 'nospace'9 span ${} ${}