Method or a function inside .cshtml ?

Topics: Writing themes
May 26, 2012 at 11:30 AM

Hi,

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

Thanks.

Developer
May 26, 2012 at 11:54 AM
Edited May 26, 2012 at 11:55 AM

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