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

To write an effective template I want the metadata of a row to contain the "isLast" attribute. #9

Open
danidemi opened this issue Apr 24, 2017 · 0 comments

Comments

@danidemi
Copy link
Owner

In order to write a more effective template
as a plug-in user
I want the metadata of a row to contain the "isLast" attribute.

Rationale

Instead of writing...

${row.data.Country.replace(' ','_')}("${row.data.Code}", "${row.data.Continent}")#if( ${row.meta.count} == ${source.rows.size()} );#else,#end

would not it be better to write something as...

${row.data.Country.replace(' ','_')}("${row.data.Code}", "${row.data.Continent}")#if( ${row.meta.last} );#else,#end

...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant