On Wednesday, May 11, 2016 at 9:30:54 AM UTC+2, Ruslan Prokopchuk wrote:
>
> Mario is right, \rules solution doesn't work well in my situation. I've
> spent entire morning playing with it, but decided to write custom parser:
> https://gist.github.com/ul/bdd6c6d6715b8ed36348304c973a91af
> Custom parser is better than custom widget because you not only get links,
> but proper reference handling, missing, orphans etc.
>
Your literate programming approach is very interesting.
If you use {{Included chunk name}} instead of [[Included chunk name]] it
should be possible to create tangled source output out of the box, with
some custom rendering templates.
So your code snippet would look like this:
```
function parentChunk() {
console.log("let's include another chunk below");
{{Included chunk name}}
}
```
just some thoughts.
-mario
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/09527c46-a739-4864-a7b0-8549519f0a90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.