-
Notifications
You must be signed in to change notification settings - Fork 406
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
Allow engines to support multple extensions #623
Comments
Modules and scripts in JS
|
For which engine would that be? This issue is limited to PatternEngine use cases, not file watches of client-side javascript. |
Each engine that is using a Javascript module semantics (ES6 module syntax) in Node ecosystem? |
With the engines that we currently have, .js would be reserved for React, but we should also think of what kinds of files an Ember or Polymer / Web Components component engine might look for. I don't know those well enough to be able to say. I think Ember does Handlebars, or at least it used to. |
Maybe I am missing something, but my intent for this issue was to alter https://github.com/pattern-lab/patternengine-node-handlebars/blob/master/lib/engine_handlebars.js#L40 to be an array of exentions that make sense for the engine. Not sure how we would handle mixed trees with overlapping capabilities, however. |
I agree, that's what we're doing. It would get pretty complicated to have a file extension claimed by more than one engine; I don't want to do that unless we really have to. |
Well, maybe not if mixed trees really are rare. Sorry, I think I'm too much in that mentality. We don't even have a mixed tree anymore. |
@bmuenzenmeyer I think I got it wrong. |
@raphaelokon I think it would, so long as you don't also have the React engine installed, which would introduce that conflict for |
@geoffp Cheers. Makes sense. |
Okay. Perhaps we officially de-scope support mixed trees.
@raphaelokon that sounds killer
…On Wed, Feb 15, 2017, 10:09 AM Raphael Okon ***@***.***> wrote:
@geoffp <https://github.com/geoffp> Cheers. Makes sense.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#623 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASNw2MXzZlsheDf7xX9F-6ZB55Z3tRTks5rcyNQgaJpZM4MB0Em>
.
|
@bmuenzenmeyer mixed trees were a useful way for us to incrementally migrate our technology stack. I'd hate to see us prohibit it, but it does seem very reasonable for us not to go way out of our way to support it. @raphaelokon are you doing some pure-functional JS templates or something? Tell us more! Is there editor support for markup in ES6 template literals? |
@geoffp agreed. Or tree is a mix right now, but transitionary... more and
more moving to handlebars every day
…On Wed, Feb 15, 2017, 10:18 AM Geoff Pursell ***@***.***> wrote:
@bmuenzenmeyer <https://github.com/bmuenzenmeyer> mixed trees were a
useful way for us to incrementally migrate our technology stack. I'd hate
to see us prohibit it, but it does seem very reasonable for us not to go
way out our way to support it.
@raphaelokon <https://github.com/raphaelokon> are you doing some
pure-functional JS templates or something? Tell us more! Is there editor
support for markup in ES6 template literals?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#623 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASNw92hJ1JAFa-OFtBZKN6LKR3sMFWNks5rcyVWgaJpZM4MB0Em>
.
|
@bmuenzenmeyer I've got serious love for Handlebars. Such a great authoring experience. |
@geoffp Yes. Basically it is a super simple template engine. PHPStorm highlights the html inside template literals and tagged |
@geoffp @raphaelokon 🔥 🔥 🔥 |
I am using Pattern Lab Node
v2
andv3
onWindows
, with Nodev6.9.5
, using theGulp
Edition.Expected Behavior
PatternEngines that support more than one common file extension for their template type should be forgiving and accomodate user preference. Examples
.handlebars
vs.hbs
- pattern-lab/patternengine-node-handlebars@8c48eb4.jsx
vs.js
- pattern-lab/patternengine-node-react@d945e2b.html
vs.underscore
- pattern-lab/patternengine-node-underscore@de327f9Actual Behavior
The text was updated successfully, but these errors were encountered: