Hello,
Firstly, thank you both for the quick replies. Yours in particular Chris is almost exactly what I'm looking for. I now have the problem that the website I'm working with is using version 0.7, rather than 0.9, so now there are several things that I need to change to make this work.
Mostly these are just style-related issues, such as closing if or with statements, however there are a couple of issues I'm having that due to my inexperience I'm not able to solve very easily:
<tr class="setting">
<th>Caption size</th>
<td>
<a class="button" on-click="setting:{{'captionSize'}},{{-2}}"><i class="fa fa-minus"></i></a>
<span style="font-size: {{data.settings.captionSize}}px">{{data.settings.captionSize}} px</span>
<a class="button" on-click="setting:{{'captionSize'}},{{+2}}"><i class="fa fa-plus"></i></a>
</td>
</tr>
<tr class="setting">
<th>Display for</th>
<td>
<a class="button" on-click="setting:{{'interval'}},{{-2}}"><i class="fa fa-minus"></i></a>
<span>{{data.settings.interval}} seconds</span>
<a class="button" on-click="setting:{{'interval'}},{{+2}}"><i class="fa fa-plus"></i></a>
</td>
</tr>
and
<div class="stars">
<label>Customer service</label>
<ul>
{{#stars}}
<li>
<i class="fa {{fa(., service)}}"
on-click="star.click:{{'service'}},{{.}}"></i>
</li>
{{/}}
</ul>
</div>
both use the on-click functionality to call into other methods, passing string literals as parameters. I keep getting the errors like:
ParseError: Expected matching quote '"' at line ...
with the character always pointing at the colon for the on-click. Is this something that you have dealt with when upgrading versions before and is there an easy way to resolve this?
Thanks,
James