This is a migrated thread and some comments may be shown as answers.

Can you perform math inside a template?

0 Answers 89 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 20 Apr 2012, 05:30 PM
// Disregard, I figured it out...//

I have a template that is being loaded via a JSON file.  My JSON file contains data I would like to use to set CSS parameters in the rendered html.  

Is it possible to have a function inside the template that performs a calculation on the JSON data and them uses the result to modify a CSS parameter?

No answers yet. Maybe you can help?

Tags
Templates
Asked by
Mike
Top achievements
Rank 1
Share this question
or