This project is read-only.

How do I input JS inside a script thru the ResourceManager

Topics: Writing modules
Jul 1, 2011 at 11: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

Jul 2, 2011 at 12:08 AM

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.