flatiron/plates — Issue #45: Feature Request: Bind/Map to Tags
Author: leeolayvar
Created: 2012-03-07 16:08:38+00:00
State: open

I'd like to request the ability to bind and/or map onto tags themselves.

A simple example would be to bind additional or

element.

Note that i am aware, in this example, that you could give

an id, or a class, but that just seems silly. I think it would be a perfectly reasonable use case to be able to insert data into the bodies of elements, especially for single element types such as head or body.

Some additional thoughts..

- Prefix, Suffix, or Replace insertion would be nice. So you could insert the data into the beginning or end of the element, or replace it's content all together.
- Multiple Matches. When dealing with tags such as

or

you'll often run into only one, but if you try and bind data to
, you'll likely match many more. With that said, you should be able to resolve which match(s) you would like to bind the data to.. or all of them?