We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are two configuration options where I can choose a file type for the preview templates:
fractal.js
fractal.components.set('ext', '.hbs');
$extension
AbstractComponent.php
But this breaks the fractal preview as the preview file type is hardcoded to .t3s:
.t3s
fractal-typo3/index.js
Line 189 in f95d702
I would recommend to use the component extension variable in this line:
writeFile(path.join(componentParent, `_${componentName}-preview.${component.extension}`), component.preview);
The text was updated successfully, but these errors were encountered:
Use component extension variable for preview file
254df20
Fixes tollwerk#2
Successfully merging a pull request may close this issue.
There are two configuration options where I can choose a file type for the preview templates:
fractal.js
I can set:fractal.components.set('ext', '.hbs');
$extension
variable fromAbstractComponent.php
.But this breaks the fractal preview as the preview file type is hardcoded to
.t3s
:fractal-typo3/index.js
Line 189 in f95d702
I would recommend to use the component extension variable in this line:
The text was updated successfully, but these errors were encountered: