mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Added docs for custom export formats
This commit is contained in:
parent
4b381c8f76
commit
6b15a01f9c
@ -0,0 +1,21 @@
|
||||
title: Creating a custom export format
|
||||
modified: 20141124173526227
|
||||
created: 20141124173526227
|
||||
tags: [[Customise TiddlyWiki]]
|
||||
|
||||
To create a custom export format that exports tiddlers as their raw body text:
|
||||
|
||||
# Create a tiddler with the following fields:
|
||||
#* ''tags'': [[$:/tags/Exporter]]
|
||||
#* ''description'': Description of this importer
|
||||
#* ''extension'': Default file extension for this export format (including the dot; for example `.tid`)
|
||||
# Set the following content:
|
||||
|
||||
```
|
||||
\define renderContent()
|
||||
{{{ $(exportFilter)$ ||$:/core/templates/plain-text-tiddler}}}
|
||||
\end
|
||||
<<renderContent>>
|
||||
```
|
||||
|
||||
The variable `exportFilter` contains a filter defining which tiddlers should be exported.
|
Loading…
Reference in New Issue
Block a user