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

Division in an External template

2 Answers 103 Views
Templates
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 15 Dec 2011, 04:17 AM
Here's a snippitof the template
<td>\
    <div class='line'>\
        <div class='left_strong_label'>\
            Total Fat\
            <div class='holder'>\
                #= TotalFat #g\
            </div>\
        </div>\
        <div class='right_light_label'>\
            <div class='holder_strong'>\
                #= 65 * TotalFat #%\
            </div>\
        </div>\
    </div>\
</td>\

Ok sooo...how do I change

#= 65 * TotalFat #%

to be
#= 65 \ TotalFat #%\

Any attempt to add the slash denotes a newline...?

Thanks,
Steve

2 Answers, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 15 Dec 2011, 07:55 AM
Hello Steve,

 The JavaScript operator for division is a forward slash "/" - not backslash "\". 

All the best,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 15 Dec 2011, 02:09 PM
Well...I guess that makes sense given the following context eh :)

Thanks,
Steve
Tags
Templates
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Petyo
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or