# Native - types & mappings - Number - Int - Number - Float - String - Date -> (string) - TimeStamp -> (uint) - Duration -> (uint) - Struct -> (uiid string to resolve type) - Type -> string (type type information) - Ref -> struct [string|string, struct] - Vector2D -> struct [Float,Float] - Vector3D -> struct [Float,Float,Float] - BBox -> struct [Vector3D,Vector3D] - Quaternion -> struct [Float,Float,Float,Float] - Flags -> map - Expression -> string | struct [string|RegEx, options:flags] - Boolean - Options -> struct [flags|struct] - Url -> string - Url-Scheme -> struct [Url,options:struct] - Asset -> struct [Url-Scheme, options:struct] - Selector > Expression | struct [Expression,options:struct] - Symbol -> ulong - Type -> struct[string,Symbol] (type type information) - Value -> Symbol - Values -> map - Attribute -> struct [Type, Value] - Parameter -> struct [Type,Value] - Operation -> Symbol - ParameterOperation -> struct [Value,Value,Operation] - Template -> string | struct [Type|Selector,options:struct] - Arguments -> struct | [...any] ## Examples ```md # My Item ## Details ``` ## Url schemes ### Google sheet value **short code** : g-sheet **brief** Obtains value(s) in expressions (anywhere) from Google sheets. **parameters** We pass trough all Google API / Url parameters. See [more](https://webapps.stackexchange.com/questions/44473/link-to-a-cell-in-a-google-sheets-via-url). **examples** ```md Estimated cost : <% VariableName / g-sheet://id/gid/range %> ``` ### PP Search **short code** : search **brief** : Returns a collection of *PP Search* results **parameters** We pass trough all Url parameters but the more common format is : search://source/query/options search://source/query/except={author=anonymous} **examples** ```md Display forum search results inline with preview ``` ### VFS **short code** : vfs **brief** Short code to display or reference files or folders on various virtual file systems as Github, local or SSH **parameters** We pass trough all VFS parameters but the more common format is : vfs://mount/file vfs://mount/root folder/sub folder/filename.md?display=inline|reference **examples** ```md Display the content of another file Display the list of files in a folder ```md ``` It's recommended to store the definitions instead in the template's store file and then use the reference just. Override arguments is possible as well ```md ``` ## Filters **short code** : filter **brief** : Short code to filter out content using the built-in expression engine or markup friendly expressions ```md admin stuff here admin stuff here ``` For repeating filters and using them as Url arguments, it's advised to store them in the template's store file. ```md {%content%} trust me, and only me ! ``` ## Parameter Operations **short code** : operation **brief** In some cases content or values are not in the right format. This system provides per type a set of parameter operations which has 3 inputs : operation, value1 & value2 (optional). ```html The thing is <%system.config.units%> high .. ``` ## Replace **short code** : replace **private** **brief** Way to modify anything - should be used as last resort only. ```html the replacement ``` ## remote **short code** : remote **private** **brief** Returns remote content ```html ``` ## Resource **short code** : resource **brief** Pull in HTML and system related resources ```html ``` ## Extension **short code** : extension **brief** Extension points enable extending existing templates for 3th party additions ```html my extra content ``` In a template ```html {%MIG_WELDING_LABEL%} ```
Implicit & inherited base attributes: - *view* : shorthand filter to make the node only visible for a certain compiler target - *widget* : widget class - *widgetOptions* : named widget options - *filter* : named filter - *id* : unique auto id "tag-name|counter" - *vfs* : if set content will be loaded from this url - *name* : if set, this unique name registers the object in the global class instance map. this attribute is being also used for wiring extensions. - *acl* : default's to any - *remote* : if set, content will be loaded from this url - as well all HTML attributes ## Todo - ACLs - type - ui mapping - type - defaults - field composer