Comments (1)
Hi
I'm glad to hear that you liked my project π
Regarding your question:
-
Probably you will not need to fork the project, you add your own extension to it and register it via extension mechanism. Currently all the twital features are implemented using the same mechanism.
Have a look at the Extension folder in the repo. You can see that also the current block system is implemented in the same way. Here you can find how to register your own extension. -
Regarding the feature you suggested, the syntax that i like the most is
<t:block name="foo" type="append">
. That obviously will also have<t:block name="foo" type="prepend">
and<t:block name="foo">
that will be the original implementation.
To be honest, I do not see a big advantage in the feature, Of course not having the full picture that you have, and the reasons behind it, probably my position is definitively flexible.
Have a looks also the the already implementedt:block-inner
andt:block-outer
attributes (docs are still missing), they might give you a bigger picture on the "block" problems.
Are you using the library as standalone or with some framework? (symfony?)
from twital.
Related Issues (20)
- Unnecessary escaping in attributes HOT 13
- Attributes are duplicated multiple nodes HOT 3
- Removed empty attribute HOT 3
- Missing SourceEvent HOT 1
- Add support fo JSX syntax and React components HOT 2
- How to make an child template be valid XHTML HOT 2
- Symfony 3 support HOT 3
- Add attribute with no value? HOT 3
- Still cannot add attribute with no value. HOT 1
- Documentation for t:content ? HOT 1
- Infinite loop with FixHtmlEntitiesInExpressionSubscriber HOT 5
- Question: own twig-functions donΒ΄t work HOT 13
- The <t:omit> node sometimes removes children (but not their children) with t:block= HOT 2
- Docs are down
- Request new Release w/ updated deps (masterminds/html5) HOT 1
- Tag a new version for Twig 3 HOT 1
- Twital not working within blocks HOT 4
- Creation of dynamic property Goetas\Twital\Twital::$options is deprecated PHP 8.2 HOT 1
- Support for Twig 3.x HOT 1
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 twital.