Skip to content

Conversation

@mstrom
Copy link
Contributor

@mstrom mstrom commented Jul 2, 2017

Symfony 4 will have templates folder under root folder
So I'm proposing to move templates to root folder for simplicity and translations as well

@mstrom mstrom changed the title Moving templates folder to root Moving translations and templates folders to root folder Jul 2, 2017
Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if it's fine, this Demo is the reflection of the latest Symfony SE release (currently v3.3), so I guess it is too early to do these movements, IMHO this should be done when Symfony 4 has been released in November 2017 with the new directory structure.

# https://symfony.com/doc/current/book/http_cache.html#edge-side-includes
esi: { enabled: true }
translator: { fallback: '%locale%' }
translator: { fallback: '%locale%', paths: ["%kernel.project_dir%/translations"] }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

- 'form/fields.html.twig'
paths:
"%kernel.project_dir%/templates/TwigBundle": Twig
"%kernel.project_dir%/templates": ~
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@javiereguiluz
Copy link
Member

@mstrom thanks A LOT for this contribution. Sadly, I must close for now as "won't fix" for the reasons explained by @yceruto. This is the dir structure used by Flex/Symfony 4 ... but we are not using any of those yet (we can't until November 2017).

A similar, but different, proposal is #602 which moves assets dir. This is because the decision is based on Webpack Encore, which is a library independent from Flex/Sf4 and which we already use in this app.

Thanks for understanding it!

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

Successfully merging this pull request may close these issues.

3 participants