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/88b159c3-ce56-44fb-9695-7cfa7d798379%40googlegroups.com.

Reply via email to