playframework / twirl

Twirl is Play's default template engine
Apache License 2.0
549 stars 108 forks source link

Make multiple argument lists useful #110

Open szeiger opened 8 years ago

szeiger commented 8 years ago

The only situation where you really need multiple argument lists is for path-dependent argument types but this breaks Twirl's translation scheme because argument lists have to merged to implement play.twirl.api.TemplateX. An obvious fix would be not to extend a TemplateX class or generate a render method when multiple argument lists are used.

wsargent commented 8 years ago

@szeiger can you provide an example?