-
Notifications
You must be signed in to change notification settings - Fork 18
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
docs: getting started #213
Conversation
@jakub-g just today I did some changes to the sample repo and gulp plugins so we might need to incorporate those changes in your PR. A couple of things have changed:
Ping me if you need more info on those changes. |
# Getting started | ||
|
||
To get started with Hashspace, you have two options: either compile the Hashspace files (`*.hsp`) | ||
to JavaScript on the server side (during build time), or compile them dynamically in the browser |
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.
Personally the option I prefer is to compile on file change, at development time, in a similar way to java compilation in Eclipse (this is what @PK1A hsp-hello-gulp is doing btw. - I don't think the pure server-side on the fly compilation is so useful (except for an online editor))
As such I would prefer the "design-time" compilation to be recommended, vs. server-side compilation..
This also adds horizontal scrollbar to `<code>` if necessary Close ariatemplates#213
Updated the PR. I moved the old page to a "getting started explained", and simplified the "getting started" page, reordered stuff, and wrote a simple gulp file ( still with two entries for compile/transpile but once a new version of gulp-hashspace is on npm, we can change it to have just entry there due to ariatemplates/gulp-hashspace@6a0936e ) Comments welcome. |
This also adds horizontal scrollbar to `<code>` if necessary Close ariatemplates#213
Edit: added a plunk presenting the in-browser demo |
This also adds horizontal scrollbar to `<code>` if necessary Close ariatemplates#213
Updated once again, to use noder 1.5.0 and |
@jakub-g
Apart from that, when fixed, you can merge ! 👍 |
Actually the few samples to demo how to launch a local webserver ❤️ ❤️ |
This also adds horizontal scrollbar to
<code>
if necessaryFor review:
grunt
,localhost:8000/start
I largely used one of David's plunks and Paweł's repo https://github.com/PK1A/hsp-hello-gulp for code samples.
In the example I had to resort to
klass
andattributes
so that I can really have a parameter in template that is actually passed further to the controller.Paweł's sample is much simpler though the parameter passed in [1] is actually discarded and the init value has to be hardcoded in [2].
[1] https://github.com/PK1A/hsp-hello-gulp/blob/master/src/index.html#L8
[2] https://github.com/PK1A/hsp-hello-gulp/blob/master/src/hello.js#L2