You want to use the TWCore's "cascade" mechanism 
(see https://tiddlywiki.com/#Cascades)

* Create a tiddler (e.g., "$:/config/ViewTemplateBodyFilters/x-fountain"), 
containing:
   
[type[text/x-fountain]then[$:/core/ui/ViewTemplate/body/rendered-plain-text]]
* Tag it with `$:/tags/ViewTemplateBodyFilter`
* Add a field named `list-before` with no field value

Notes:
* Your "cascade" tiddler can have any name.  The name suggested above is 
consistent with the existing TWCore "ViewTemplateBodyFilters" shadow 
definitions.
* The tiddler content is evaluated by the TWCore cascade mechanism, and 
basically says: "If the tiddler's type field is equal to "text/x-fountain", 
then display the tiddlers body using the 
"$:/core/ui/ViewTemplate/body/rendered-plain-text" template
* The `$:/tags/ViewTemplateBodyFilter` tag adds your definition to the 
default ViewTemplateBodyFilters cascade
* The `list-before` field ensures that your custom cascade is evaluated 
first when the cascade is processed by the TWCore

enjoy,
-e

P.S. You might want to visit https://talk.tiddlywiki.org/, which is a 
"Discourse" server that is now the TiddlyWiki community's primary 
discussion/Q+A area.
On Saturday, April 1, 2023 at 8:41:13 AM UTC-7 gab...@tibas.media wrote:

> Hi, 
>
> I registered a new type on my TW,  `text/x-fountain`, as per 
> https://groups.google.com/g/tiddlywiki/c/l_uxgh_tsDU.  All good; it shows 
> up on the type selector.
>
> But I'd like it rendered as if it was a `text/plain` file, not as a TW 5 
> tiddler.
>
> Is there a simple way to achieve this? 
>
> Thanks,
> Gabriel
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b8e1eef5-38e7-4b30-a78a-93148af6d596n%40googlegroups.com.

Reply via email to