You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it's quite hard to figure out the right way to do it. Require makes sure they'e there, but how to I call an init method on my main class, for example?
The text was updated successfully, but these errors were encountered:
Ah, I see now. It is just mentioned, but no example of how to do it. OTOH, amber init-created projects already have one production and one test package included in loader - so you can just add new ones to the same place where they are. In 0.12, it is an array in require call in index.html, with newest 0.13 prerelease, it's array in define call in deploy.js and devel.js.
You are true that doc is suboptimal. We know it, just there is no one who would take it and improve it radically. Plus, things in 0.13 prerelease are still in the flux, so the question is - write docs for 0.12 or for 0.13?
OK, got it. I think that just writing one line about how to create something of your choice (other than default) and call any method on it would be great. Hopefully not changing between versions much either.
Sorry to put this at the wrong place; Here goes again ->
It would be great with a small example on what to write in the index.html to start/create/init your own packages. It is mentioned at the bottom of
http://docs.amber-lang.net/overview/creating-packages.html
But it's quite hard to figure out the right way to do it. Require makes sure they'e there, but how to I call an init method on my main class, for example?
The text was updated successfully, but these errors were encountered: