Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Add a shortcut for templates/sub-parts containg no includes to skip parsing #21

Open
AndreasKl opened this issue Mar 4, 2018 · 3 comments
Labels
discuss A raw concept that needs discussion whether it is a good addition.

Comments

@AndreasKl
Copy link
Contributor

AndreasKl commented Mar 4, 2018

As an optimization it would be nice if a template does not contain any includes, can indicate that the content can be passed straight into the result with no parsing at all (ignoring the the content tag)
Also includes that have no need for a "content"-tags and does not need any parsing could indicate that. This could be useful for json objects for analytics.
<c-include path="..." mode="parse/**pipe**"></c-include>

@AndreasKl AndreasKl added the discuss A raw concept that needs discussion whether it is a good addition. label Mar 4, 2018
@thovid
Copy link
Member

thovid commented Mar 4, 2018

So, a content fragment could decide to just return the <div>...</div> with the content, without head etc?

@thovid
Copy link
Member

thovid commented Mar 4, 2018

Btw, html pages can skip parsing by being routed to via a proxy route ;-)

@AndreasKl
Copy link
Contributor Author

AndreasKl commented Mar 4, 2018

@thovid at least an include is always processed which is potentially not always needed. I could think of a service that renders a script tag with a few javascript variables.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discuss A raw concept that needs discussion whether it is a good addition.
Projects
None yet
Development

No branches or pull requests

2 participants