kopia lustrzana https://github.com/miklobit/TiddlyWiki5
8 wiersze
637 B
Plaintext
8 wiersze
637 B
Plaintext
![]() |
title: $:/core/templates/module-tiddler
|
||
|
|
||
|
<!--
|
||
|
|
||
|
This template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields. The body of the tiddler is wrapped in a call to the `$tw.modules.define` function in order to define the body of the tiddler as a module
|
||
|
|
||
|
-->`<script`<_fields template=' data-tiddler-$name$="$encoded_value$"'></_fields>` type="text/javascript" data-module="yes">$tw.modules.define("`<_view field="title" format="jsencoded" />`","`<_view field="module-type" format="jsencoded" />`",function(module,exports,require) {`<_view field="text" format="text" />`});
|
||
|
</script>`
|