-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove HTML comments from template (minifying) #1274
Comments
Use the exclude Tags: |
Here's the link to the documenation: |
Oh, I really overlooked this in the documentation because I was focused on removing existing |
Meanwhile, on the subject of minification, there is some functionality in |
Yes, initially I hoped this could be an answer to my problem but ironically my project barely contains custom CSS and JavaScript (yet). |
Hello use afterrender : \Template::instance()->afterrender(function($html) { |
@dabcorp Interesting where is that from? |
@GlassGruber , Minify is a class like this (simply) : `<?php // Définition de la classe Minify qui étend la classe de base Prefab
}` |
Oh I see thank you! I thought I missed again something from the docs or similar! |
Hello,
What would be an appropriate method to remove HTML comments from my templates when they are rendered?
I haven't found anything about it in the documentation.
I tried
\Template::instance()->extend()
but this does not work with HTML comments.I also found
View::afterrender()
but I don't know whether might be helpful and how to utilize it. I am not that familiar with PHP and F3.The text was updated successfully, but these errors were encountered: