BorisMoore/jsviews — Issue #29: Jsviews relies on structure.
Author: blowsie
Created: 2012-01-17 14:28:12+00:00
State: open

Ive built some custom helpers and some templates to pivot tables
.
This requires me to open the table tag, check proceeding rows to see if they belong to the table and add them , when the next prodecding row does now match, close the table.

This works fine and beautifully with jsrender, no errors, nice clean code.

However when I use jsview's `data-getfrom="[dataName]"` type tag it falls over.
The error in console is - "template is undefined" - template = template.split( "=" ) - line 236..

To ensure that the problem is the tags not being closed, i used the same helpers and removed all the table stuff and just wrapped the data with `

`. This works as expected

However if I was to wrap the data with only the starting `

` tag, it breaks..
What is the reason for this, does jsviews check or rely on the structure of the fields parents?

I hope my message is clear and understandable.