Method or a function inside .cshtml ?

Topics: Writing themes
May 26, 2012 at 12:30 PM

Hi,

Can I create a method or a function inside theme, .cshtml ? If possible... how?

Thanks.

Developer
May 26, 2012 at 12:54 PM
Edited May 26, 2012 at 12:55 PM

Yes. But I doubt this is a good practice for all but very trivial functions. Html helpers should serve better.