Add constructors to specify extra parameter on Require attribute class, same as Macro. The value would be passed to the instance in the Resources.Context object, and different parameters would count as a different resource node when exploring dependency graph.

If we add support for it to BaseResource, defining a dependency would be possible without defining a separate class for it, like:

[<Require(typeof<Resources.BaseResource>, "//myurl.com/mylib.js")>]
  • JankoA

    Implementation change: New type UrlResource was added instead, BaseResource remains abstract.

  • JankoA

    Also RemotingProvider can take parameters, client-side instance will be initialized with these values.

  • github

    This topic has been closed.