-
Notifications
You must be signed in to change notification settings - Fork 405
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
refactor: enable fileendings separated by more than one dot #1459
Draft
mfranzke
wants to merge
16
commits into
dev
Choose a base branch
from
1030-fully-support-htmltwig-suffix
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5386288
refactor: enabled fileendings separated with more than one dot
mfranzke 8dd40f4
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke 8e292d9
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke 452ad5e
refactor: we also want the pattern extension to include the full "ext…
mfranzke 4cf86b6
docs: added entry regarding a multi dotted fileextension
mfranzke 7e763c3
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke 0ada4f1
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke ca8e50e
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke 195e671
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke a0b1546
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke 351168e
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke 7359320
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke 775d485
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke e940bc3
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke 9c014ca
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke 0e87f2d
Merge branch 'dev' into 1030-fully-support-htmltwig-suffix
mfranzke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be dangerous.
When pattern lab discovers multiple pattern engines, it will try to spawn the file found in the engine's folder located under
_meta/head...
In that case, the file will not be found, and an error will be thrown here
patternlab-node/packages/engine-handlebars/lib/engine_handlebars.js
Line 116 in 4cf86b6
You can either catch the error and ignore it, or you revert it to its former state.
Another issue could be, that by chance the file will be taken, but the output for the twig file will be overwritten by the content of the
hbs
file. In that case, it could lead to an error when serving pattern lab because it has a different rendering engine.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather look into the
engineFileExtensions
and when theconfig.patternExtension
is included there, output the required file. (In that case, we need to read the file we deliver with the engine from the _meta folder and spawn it as the configured extension inconfig.patternExtension
.