Daniel Schierbeck
Daniel Schierbeck
Actually, looking at https://github.com/zendesk/curly/blob/master/lib/curly/compiler.rb#L119-L135 I'm surprised to see this behavior, so I guess it's a block. Can you write a failing test for this?
I'll take a look at fixing this. It's a bit trickier than I had hoped for.
I've been thinking about adding a `cd ..` block that goes back up the block stack, e.g. ``` html {{@article}} {{@author}} {{name}} posted this on {{@..}} {{posted_at}} {{/..}}. {{/author}} {{/article}}...
I've previously thought about caching presenter instances, however this seems to be orthogonal to the issue at hand... Probably the right thing to do here is to rewrite parts of...
@yurifrl that can be tricky, as Curly is statically typed :-/
Can you guys open a separate issue for that?
:heart: A few comments: 1. Parameters are called attributes in the Curly nomenclature, and they're _always_ keyword based. 2. The one positional argument a component may have is the _identifier_....
I'd rather keep the output at one conceptual level – either use the Curly lingo (components, identifiers, attributes, ...) _or_ the Ruby lingo (methods, arguments, classes).
Thanks! We've in the process of adding stuff related to this to our product, so I'll probably wait with merging until we've verified that the format is useful. Is it...
So there'd be a magic method on Curly::Presenter that would handle missing components? ``` ruby # curly/presenter.rb def component_missing(name, identifier, attributes = {}) # Default implementation is to raise an...