Jed,
Thanks - Library doco is a gap then.
I don't understand bags and recipes either, they come up here and there. It
relates to the tiddlywiki build process and never was document for end
users.
Regards
Tony
On Monday, 20 April 2020 19:36:09 UTC+10, Jed Carty wrote:
>
> Tony,
>
> I don't know of any documentation, I looked at a working library and tried
> to make that. I have no idea what 'recipes' refers to.
>
> Mohammad,
>
> Thank you for finding this, you were right about the place that caused one
> error, but there was also an error with encoding the titles, I was using
> jsencoding which escapes ' characters, but that breaks json so when there
> was a ' in a tiddler title it would break. Anyway, this should be a working
> version, please let me know if you find any other things that break it.
>
> \define plugintext()
> {
> "tiddlers": {<$list
> filter="[subfilter{$:/state/MakePlugin!!filter}]+[bl[]]">
> "{{{ [<currentTiddler>] +[jsonstringify[]] }}}": <$text
> text=<<jsontiddler>>/>,
> </$list><$list filter="[subfilter{$:/state/MakePlugin!!filter}]+[last[]]">
> "{{{ [<currentTiddler>] +[jsonstringify[]] }}}": <$text
> text=<<jsontiddler>>/></$list>
> }
> }
> \end
>
> Name: <$edit-text tiddler='$:/state/MakePlugin' field='name'
> class='tc-edit-texteditor'/>
> Filter: <$edit-text tiddler='$:/state/MakePlugin' field='filter'
> class='tc-edit-texteditor'/>
> Description: <$edit-text tiddler='$:/state/MakePlugin' field='description'
> class='tc-edit-texteditor'/>
> List: <$edit-text tiddler='$:/state/MakePlugin' field='list'
> class='tc-edit-texteditor'/>
> Version: <$edit-text tiddler='$:/state/MakePlugin' field='version'
> class='tc-edit-texteditor'/>
>
> <$button>
> Make Plugin
> <$wikify name=pluginText text=<<plugintext>>>
> <$action-setfield $tiddler={{$:/state/MakePlugin!!name}}
> text=<<pluginText>> type='application/json'
> description={{$:/state/MakePlugin!!description}} core-version=">=5.0.0"
> dependents="" list={{$:/state/MakePlugin!!list}} plugin-type="plugin"
> version={{$:/state/MakePlugin!!version}}/>
> </$wikify>
> </$button>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/20f3099f-7397-43d6-a7a8-ba359d0332ba%40googlegroups.com.