^include( item[, template] )^

Tinderbox Icon

^include( item )^

Includes a single item or note (with its default template) in the Web page for the current note.

^include( item, template )^

Includes an item with its template HTML export file in the Web page for the current note.

Prior to v 3.0.0, Tinderbox ignored paths that included containers that were not exported. For example

^include(/documentation/details/note)^

would include nothing if documentation or details were had HTMLDontExport set to true, even if note had HTMLDontExport set to false.

v3.0.2 now evaluates the optional second argument, which specifies the export template to use when including. This permits parameterised constructions like the following:

^include(^get(WhatToInclude)^,^get(TemplateName)^)^

Note that Tinderbox will not generate HTML links for TBX file links that point to notes that are only exported via the ^include method; consider linking to the note's (export) parent note.


Up: Item-based
Previous: ^inboundTextLinks( [start, list-item-prefix, list-item-suffix, end, type] )^  Next: ^indent( data )^ 

[Last updated: 3 Dec 2008]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox