scriban / scriban

A fast, powerful, safe and lightweight scripting language and engine for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add fragments so part of template can be reused

Nairda015 opened this issue · comments

Hey there is a lot of going around HTMX and it would be cool if scribal can support fragments feature similar to this php directive https://laravel-news.com/laravel-htmx

Looks like fragment is just an indirection with inlining. The closest built-in is maybe wrap here otherwise you could define your own. I don't think there is a need to change anything in Scriban to provide such support.