-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
EJS via Hapi for the frontend markup, Vue.js (if needed) for creating components #37
Comments
EJS is supported by Hapi (along with a bunch of other templating languages, but ejs seems to be the most relevant/useful, like a JS version of PHP). |
What Vue.js is good for (and not)
It's not convenient for much else. It is especially not good for designers who are used to plain-old markup. Apparently, being friendly toward designers is one of its strong points, but that's compared to other frameworks like React.js / Angular / Ember. Nor is it useful for creating relatively "small" widgets like input fields or buttons. Many websites, including many "large scale" websites, have little need for this stuff. Even twitter and github don't do the single-page app thing! What EJS is good forEJS is basically PHP except JavaScript. So it is good for that style of programming, and it is therefore much more friendly and usable for designers (and programmers!). Vue.js can be used to prevent the EJS from overcrowding the markup. Some code not neededSorry @wemeetagain for not figuring this out earlier, but I think you'll agree that it doesn't make sense to replace one line of markup (the Many of the If we want to serve static content without a folder hierarchy then the If we don't go the single-page static site route then the only thing in #6 that might be worth using Vue.js for is this widget: Undecided for nowI've re-opened issue #6 for now as I'm not sure Servers are a bad thing, and we do want to move away from them. Moving toward them is probably not what we want to be doing if we can help it. It may be the case that if we stick with Vue.js and its In thinking about this it may be worth it for me to revisit my Webpack research and see if, for example, it has a way to bundle Webpack loaders of note
TODO: see if browserify has can do this as well. Preliminary searching suggests it does (see ejsify), but has less community support for this, and browserify itself might not be as well designed in this regard as Webpack. Also, ejsify uses an older version of EJS (1.x, not 2.x, although it looks very simple to fork it and update it). So... maybe one avenue to explore (without breaking/rewriting a bunch of the stuff we have now), is to add a gulpfile that uses webpack and an |
I'm mostly just learning Vue.js, still, so this seems ugly. Even to me. I'm also not sure why the "Press me" button isn't working; it correctly sets the the `accomplished` property to `true` on the right variable (the proper index of the `steps` Array), but Vue isn't picking this up and so isn't showing the "Success" button for the user to click. Too tired now, gonna figure it out later. Maybe ask for some help, too.
See http://hapijs.com/tutorials/views + new edits to #6.
Hapi's vision plugin homepage has great examples of how to set this up and what templating languages are supported.
Tasks
.html
files like jekyll does it?.vue
files that are unneeded.The text was updated successfully, but these errors were encountered: