You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we need to render some files with the template engine before compressing them.
I implemented a patch for this purpose, which we want to use internally for our project.
In our version the script, single-script, stylesheet and single-stylsheet tag support an option "render".
If it is true, the file is rendered using TemplateLoader before adding the source to the compressed file.
When press is disabled ("press.enabled=false"), files that need rendering are linked as "/press/[js|css]/rendered/". The corresponding action just renders the file and outputs it uncompressed.
The improvement is of limited use because you can't pass additional parameters to the template, but it is fine for our use case.
If you wan't this option in future press versions, I'm glad to send you a pull request.
Btw. what is the licence of the press module? Is it fine for you that we use a modified version? All changes are published in my press git repository.
Thanks,
Florian
The text was updated successfully, but these errors were encountered:
Hey Florian,
It's an interesting idea. I'm currently on site with a client but when I get back to Buenos Aires I'll take a look at it.
Thanks for the submission!
Dirk
Hi Dirk,
we need to render some files with the template engine before compressing them.
I implemented a patch for this purpose, which we want to use internally for our project.
In our version the script, single-script, stylesheet and single-stylsheet tag support an option "render".
If it is true, the file is rendered using TemplateLoader before adding the source to the compressed file.
When press is disabled ("press.enabled=false"), files that need rendering are linked as "/press/[js|css]/rendered/". The corresponding action just renders the file and outputs it uncompressed.
The improvement is of limited use because you can't pass additional parameters to the template, but it is fine for our use case.
If you wan't this option in future press versions, I'm glad to send you a pull request.
Btw. what is the licence of the press module? Is it fine for you that we use a modified version? All changes are published in my press git repository.
Thanks,
Florian
The text was updated successfully, but these errors were encountered: