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

Pattern file extension #5

Open
kaesetoast opened this issue Feb 12, 2018 · 1 comment
Open

Pattern file extension #5

kaesetoast opened this issue Feb 12, 2018 · 1 comment

Comments

@kaesetoast
Copy link

Hi Claus,

thanks so much for providing this project! I am just getting started on integrating PatternLab in our workflows and wondered why you went with .fluid as the file extension for templates. In our TYPO3 projects, all fluid templates have the extension .html and I would like to unify this.

Is it easily possible to choose a different file extension? I noticed that you can set patternExtension in the config.yml. But changing this causes patternlab to complain about not finding the PatternLoader.

@NamelessCoder
Copy link
Owner

Hi @kaesetoast - the reason for using .fluid is simply the way PatternLab works. Initially I tried developing it to use .html but this has some rather unfortunate side effects, such as then having to identify the pattern engine as a html-engine which it certainly isn't.

It is possible I overlooked something in configuration or other, on the PatternLab side, which could make it work with html source files. But in the end it shouldn't matter much: the PatternLab project is intended to be exported, and the exporter currently writes those .fluid template files as .html. So your designers work with one file extension but the assets you end up with use another, transparently, because Fluid can render with the format set in the rendering context instead of needing to set it in each f:render call.

https://github.com/NamelessCoder/patternlab-fluid-typo3-export

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

2 participants