Sitefinity/feather — pull request #18 by Boyko-Karadzhov (2014-08-20 15:45:36+00:00)
Title: server context handler

Add this reference to use the new feature:
@Html.Script(Url.Content("~/Telerik.Sitefinity.Frontend/ServerContext.js"))

It will declare a global variable "sitefinity".

Get a url of an embedded resource by calling:
sitefinity.getEmbeddedResourceUrl(assembly, path)

Get URLs of sitefinity services by calling methods from sitefinity.services:
sitefinity.services.getContentItemServiceUrl()
sitefinity.services.getUserServiceUrl()