Skip to content
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

[SUGESTION] Testing page for templates #78

Closed
leogomes opened this issue Jul 24, 2012 · 11 comments
Closed

[SUGESTION] Testing page for templates #78

leogomes opened this issue Jul 24, 2012 · 11 comments

Comments

@leogomes
Copy link

Hi Guys,

I've been looking at the documentation in the website and it looks pretty neat, but something that would be really useful is to have a page where I could exercise different examples of templates and how they would be rendered using a certain json object. Just like dustjs is doing: http://akdubya.github.com/dustjs/ and like the online version of PEG.js: http://pegjs.majda.cz/online

Congrats for the great job, so far!

Cheers,
Leo.

@captainbrosset
Copy link
Contributor

+1 for me, that'd be super useful to learn the framework.

@leogomes
Copy link
Author

Maybe an alternative would be to make AriaTemplate one of the available frameworks here: http://jsfiddle.net/ and provide some examples.

For further info: http://doc.jsfiddle.net/

@jakub-g
Copy link
Collaborator

jakub-g commented Aug 14, 2012

I'm definitely for it, but I'm not sure about the complexity. Since there are many types of files (TPLs, TMLs, template scripts, module controllers, CSS templates), it would not fit JSFiddle's model probably. Something custom on our side would be a preferred solution probably.

Or would it be possible (the question to the team) to put multiple JS in the same JSFiddle box? I'm also not sure how about the dependencies handling in this scenario (TPL requiring a TPL script etc).

@benouat
Copy link
Member

benouat commented Aug 16, 2012

@jakub-g you exactly spotted the main issue !

As we are fully based on XHR request to retrieve all dependencies, we unfortunately can't be available through jsfiddle without any modification on ourside.

At least the first change (and the smallest one) should be that the framework might need to be usable with only one script insertion (like ariatemplates-1.2.x.js) with everything inside it ....

We are far from this ... :(

But

We could easily provide our own jsfiddle-like tool. It's not complecated, we already have an existing platform to run samples on at.com. We are just missing a way to

  • to live edit the files (should be ok with Ace)
  • to save the files in the cloud (the hard part, but doable with some CouchDB or MongoDB)

So who's in ?

@leogomes
Copy link
Author

I'm in.

We can probably do a first version that contains only examples and allow the user to modify them, but doesn't persist any of the modifications. À la dust.js.

Let me know how you want to organize this.

@juliandescottes
Copy link
Contributor

Hi,

It is only a prototype, but you can have a look at http://juliandescottes.github.com/instantat/ . It's a JS-Fiddle like dedicated to aria templates.

Again, only a prototype, but any feedback is highly appreciated !

Thanks

@piuccio
Copy link
Contributor

piuccio commented May 22, 2013

Closing this as instantat is the tool.
We can track issues or feature requests there.

@piuccio piuccio closed this as completed May 22, 2013
@benouat
Copy link
Member

benouat commented May 22, 2013

We should think about hosting our own version of instantat on ariatemplates.com, and also make some changes to store the instantlets into gists associated to Github users 👍

🔥 🎉

If everyone agrees, i can spend some time on it !

@jakub-g
Copy link
Collaborator

jakub-g commented May 22, 2013

@benouat Definitely yes.

BTW I'm trying to make it possible to use dev=true on InstantAT as mentioned here juliandescottes/instantat#7 and also to specify which version of AT you want to have loaded (version=1.3.7).

Ideally we should have a CDN on AT.com with different versions, but actually this can be even hosted simply on GH repo in gh-pages (if there'll be no cross-domain problems, I hope not).

@leogomes
Copy link
Author

Just would like to say thank you, guys!

@juliandescottes
Copy link
Contributor

Really happy to see the aria templates team getting involved here. If I can help you make sense of the "code base" of instantat, I'll be happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants