Hi,
<script> tag is only supported, if you use InlineJavasscriptPlugin
which executes the script in a normal tiddler.
"systemConfig" tag marks the content of a tiddler as a "script" to be
executed at startup
a tiddler that contains:
some text
<script>
the code
</script>
is fine if InlineJavascriptPlug executes "the code."
but with systemConfig tag you will get an error, because everything is
executed and "some text" is no valid JS command. Also <script> may
cause some trouble.
A tiddler tagged systemConfig should look like this
/***
wikified text and documentation goes here
!Code
***/
//{{{
story.closeAllTiddlers();
if(store.tiddlerExists(config.options.txtUserName+'\'s Dashboard'))
{story.displayTiddler(null,config.options.txtUserName+'\'s
Dashboard');}
else
{story.displayTiddler(null,'404');}
window.showBackstage = window.simpleRoles.contains('Admin');
//}}}
which will be nicely rendered and can be executed.
there is no <script> tag anymore
the above is not tested
have fun!
mario
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.