Skip to content
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

how to use extends and macro,.. #67

Closed
twentyfortysix opened this issue Nov 1, 2020 · 1 comment
Closed

how to use extends and macro,.. #67

twentyfortysix opened this issue Nov 1, 2020 · 1 comment

Comments

@twentyfortysix
Copy link

Hello,
Is it possible extends, and macros?
https://twig.symfony.com/doc/2.x/tags/extends.html
Coz I can't find a way how to.
I basically do not know where is the default path set where from it takes if it does other twig files such as parent layouts, macros and the like.

thank you, Jan

@twentyfortysix
Copy link
Author

I got it.. I went thru the echo-chamber youtube and .. here it is :)

{% extends '@template/../twig/base.html.twig' %}
{% block content %}
 	hack
{% endblock %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant