You should add the attribute on a code entity level.

By on 9/29/2015 8:12 AM ()

I don't understand. Where is that "code entity level"?

By on 9/29/2015 8:51 AM ()

Like a function or type that you end up using in the page being served.

By on 9/29/2015 9:35 AM ()

There is no way to force it's rendering, even if no function calls it directly, like bootstrap.

By on 9/29/2015 9:36 AM ()

It should be rendered as soon as you use any client-side type or function from the assembly on which you put your [<assembly: ...>] attribute. If you have no such call, does that mean that bootstrap always needs to be inserted? Then you should just put it in your HTML file. The purpose of WebSharper resources is for dependency management, ie. for resources that might or might not need to be inserted depending on what client-side code is on the page.

By on 9/30/2015 7:07 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper