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

Template Spec (or Documentation) is Unclear... #36

Closed
Xalior opened this issue Jun 25, 2014 · 3 comments
Closed

Template Spec (or Documentation) is Unclear... #36

Xalior opened this issue Jun 25, 2014 · 3 comments

Comments

@Xalior
Copy link

Xalior commented Jun 25, 2014

It seems that templates only work if they are composed of a single DOM element, even if it's a simple

...

This is not obvious in the documentation -- and templates without this minor wrapper element seem not to parse correctly beyond the first element.

It may be this is by design, but, if so - it's not obvious without inspecting all the examples, etc. :)

(no examples provided, but take any of the standard examples, and remove the outer wrapper element... 👎 )

-Dx

@wryk
Copy link

wryk commented Jun 25, 2014

Yep, like others libraries, ripple only use the first root element.
But you are right, this should be documented somewhere because it's an unexpected behaviour for some developers.

I didn't see documention for this in AngularJS but it trigger an error for this case : https://docs.angularjs.org/error/$compile/tplrt

@Xalior
Copy link
Author

Xalior commented Jun 25, 2014

Angular, Yuk! ;-)

I picked ripple because I like an empty DOM not to need over a 1Meg of supporting (SemiPointlessReduandantFactoryProvider) cruft :)

I have updated https://github.com/ripplejs/ripple/wiki/Composing-Views to make this more clear.

Thanks for the clarification!

-Dx

@Xalior Xalior closed this as completed Jun 25, 2014
@wryk
Copy link

wryk commented Jun 25, 2014

I agree with you, I pick AngularJS as example because it's known.
Thanks for the documentation update !

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

No branches or pull requests

2 participants