Razor Examples?

Jul 9, 2015 at 8:33 PM
Hello,
I was wondering if there was a possibility that you could provide some working examples of OpenContent templates made with Razor. So far in the documentation there are just Handlebars.js examples. I'm not sure exactly how to connect the Razor template to the JSON data file. Sorry if this is a stupid question.

Any help is appreciated!
  • Margie
Coordinator
Jul 10, 2015 at 1:04 PM
Hi,
Un razor you acces thé variables l'île this:
Model.myvariable
Or
Model.Settings.mysetting

I make a example Next week when i back from holyday

Regards
Sacha
Coordinator
Jul 14, 2015 at 6:49 PM
Hi,

I add a Razor template example.

http://www.openextensions.net/templates/open-content/razor-starter

Regards,
Sacha
Marked as answer by sachatrauwaen on 7/14/2015 at 11:49 AM
Jul 20, 2015 at 7:19 PM
Thanks a lot!

Thanks for the quick response. The example is exactly what I needed.

Much appreciated,
  • Margie