Coder Social home page Coder Social logo

Comments (7)

AliShareei avatar AliShareei commented on May 29, 2024 1

Hello
Can't we have this for version 4.x?
I think this is an important and basic feature.
I don't know about absolute path but at least simple dynamic variable is good enough for now.
I had almost decided to use Twig because of this problem.

Also, There is no post for this issue to vote on issue phalcon/cphalcon#14608

from phalcon.

Jeckerson avatar Jeckerson commented on May 29, 2024 1

@AliShareei It will be done in v5 because Volt is written in C. Process of rewrite to PHP native is still in progress, as there are 20+k lines of code in C.

from phalcon.

Jeckerson avatar Jeckerson commented on May 29, 2024 1

@AliShareei Hello, benefits are relative from view to view. But if generalize:

  • compatibility with existing projects
  • performance (I almost have no doubts about that, even if it is written in PHP)
  • alternative (PHP templates, Volt, Twig or even Smarty). As mentioned here #90 (comment) - in future it might be used outside of Phalcon eco-system as independent package

from phalcon.

yassinrais avatar yassinrais commented on May 29, 2024

we really need this

DIRNAME == the volt file :: current folder
{% DIRNAME ~ 'exemple/part4' %}

At that moment
you have a lot of partials folders and files & you w tant to change a folder name

you will need to edit every partial file and change the path ...

Thanks

greetings.

from phalcon.

Jeckerson avatar Jeckerson commented on May 29, 2024

@yassinrais Give your vote in this issue - phalcon/cphalcon#14608

from phalcon.

AliShareei avatar AliShareei commented on May 29, 2024

Hi @Jeckerson
If so, since Twig and Volt seems to have similar syntax, what are the benefits of rewriting Volt in PHP? Why not use the Twig for v5?

from phalcon.

AliShareei avatar AliShareei commented on May 29, 2024

Hello guys,
Do you think we have any chance for this in V5?

from phalcon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.