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

v4: Inline Partials #433

Closed
karlhorky opened this issue Oct 29, 2015 · 7 comments
Closed

v4: Inline Partials #433

karlhorky opened this issue Oct 29, 2015 · 7 comments
Milestone

Comments

@karlhorky
Copy link
Contributor

handlebars-lang/handlebars.js#1018

@jknack
Copy link
Owner

jknack commented Nov 3, 2015

inline partials will be available in the next release... but don't think decorators will be. do you find them useful? I'm struggling to see the diff between decorators and helpers

@karlhorky
Copy link
Contributor Author

Hm, looks like they are used for annotating particular blocks with metadata as well as to wrapping them in behaviors. For instance, here an early concept of decorators shows how they could be used to build up a table without repetition for the html elements.

Would be useful, but I can understand if this would mean a lot of work.

Should I maybe separate the decorators part out into another issue?

@jknack
Copy link
Owner

jknack commented Nov 3, 2015

isn't just the amount the work.. so far all the examples I saw mutate/changes the state of the template options.fn or similar... that is a bad practice but also hard to implement in static typed languages like Java.

So, yes. Please open a new issue for decorators now.

Thanks

@karlhorky karlhorky changed the title v4: Inline Partials and Decorators v4: Inline Partials Nov 3, 2015
@karlhorky
Copy link
Contributor Author

Sounds good, opened one at #442.

@jknack
Copy link
Owner

jknack commented Nov 8, 2015

done: b046834

@jknack jknack closed this as completed Nov 8, 2015
@jknack jknack added this to the 4.0.0 milestone Nov 8, 2015
@karlhorky
Copy link
Contributor Author

Wow, so much new stuff! Thanks!

@jknack
Copy link
Owner

jknack commented Nov 9, 2015

:)

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

2 participants