How do I input JS inside a script thru the ResourceManager

Topics: Writing modules
Developer
Jul 1, 2011 at 10:27 PM

Hi All,

So I trying to use the resource manager and was wondering if I could do something like this...

<script>Insert soemthing here dynamically based on culture</script>

any ideas?

Cheers, Nick

Coordinator
Jul 1, 2011 at 11:08 PM

If I understood correctly, you should be able to do that with a @using(Script.Foot()) block. Look into Parts.Common.Date.Edit.cshtml for an example where server stuff is injected into the client script.