Comments (10)
As I just found out, this is NFR covers already expressed ideas (#1924 or phalcon/cphalcon#2182).
from phalcon.
Maybe a tag could also work. Sometimes it can be handy not filter all the content
{{strip}}
<!DOCTYPE html>
<html>
<head>
<title>{{ title }} - An example blog</title>
</head>
<body>
<h1>test</h1>
</body>
</html>
{{endstrip}}
from phalcon.
Any updates regarding this NFR? If nothing is done yet I would like to give it a try using the incubator.
from phalcon.
I am commenting on this to express interest in this feature, today I've been searching for a way to cache compiled minified views.
from phalcon.
@JABirchall just use {% cache %} {% endache %} i guess @JABirchall not sure about this minifing, i guess you mean this mostly.
from phalcon.
@Jurigag I know about the fragment caching. But I'm more interested in having phalcon minify views before caching.
I use {% cache %} alot actually, since most of the data on my site is from a remote API/Socket. If we had a {% minify %} tag would be nice.
from phalcon.
Then you can actually implement your own Frontend class i think and remove any whitespaces there since {% cache %}
uses just normal backend class and frontend class. Phalcon\Cache\FrontendInterface
It should be similar as https://github.com/phalcon/cphalcon/blob/master/phalcon/cache/frontend/output.zep just add your logic for minification in beforeStore.
from phalcon.
Well what i propose is workaround of course for now, some way to do this directly in view could be good.
from phalcon.
Well what i propose is workaround of course for now, some way to do this directly in view could be good.
Yeah, I'd be more interested in it being an official feature. Anything to speed up the framework more.
Could add an optional option in volt to enable magnification for all views useful for production environments where changes are not likely to happen often. and the {% minify %} {% endminify %} blocks for optional minifications.
I personally don't like the idea of this proposal proposing it to be a separate filter that you need to add in the service loader. It should be in the volt engine where you can just enable it or use the blocks.
from phalcon.
Closing in favor of phalcon/cphalcon#13855. Will revisit if the community votes for it, or in later versions.
from phalcon.
Related Issues (20)
- [NFR]: removeBehavior method in Model
- Can't access page, 404 FORBIDDEN
- [NFR]:returnedValue not updated after dispatcher->forward
- [NFR]: ADD sticky for read write connection
- Can I use `$this->getRelated` on already cached data?
- [BUG]: Scrutinizer Fixes HOT 1
- [NFR]: No way to add html attributes to Select Tag. documentation inadequate HOT 1
- [BUG]: The "setDefault" method does not work for forms of type "text" with name "value" HOT 5
- update src folder links
- How to use cookie in phalcon 4.x ? HOT 1
- update tests folder links
- [NFR]: Complete rework of ORM HOT 3
- [BUG]: \Phalcon\Encryption\Crypt + named parameters/arguments throw fatal error. HOT 1
- [NFR]: Refactor Phalcon\Mvc\Router/Route HOT 1
- [NFR]: Refactor Phalcon\Mvc\Model\MetaData
- phalcon 3,4 webhook problem HOT 2
- [NFR]: What is the purpose of this library? HOT 3
- [NFR]: Add a getResult() or fetchAll() method to Resultset\Simple
- [BUG]: when i use JWT Builder , api returns blank HOT 1
- [NFR]: Refactor Phalco\Mvc\View
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phalcon.