byond - Modules - TypesVar Details - Proc Details

/datum/asset/simple/namespaced

Namespace'ed assets (for static css and html files) When sent over a cdn transport, all assets in the same asset datum will exist in the same folder, as their plain names. Used to ensure css files can reference files by url() without having to generate the css at runtime, both the css file and the files it depends on must exist in the same namespace asset datum. (Also works for html) For example blah.css with asset blah.png will get loaded as namespaces/a3d..14f/f12..d3c.css and namespaces/a3d..14f/blah.png. allowing the css file to load blah.png by a relative url rather then compute the generated url with get_url_mappings(). The namespace folder's name will change if any of the assets change. (excluding parent assets)

Vars

parentsparents - list of the parent asset or assets (in name = file assoicated format) for this namespace. parent assets must be referenced by their generated url, but if an update changes a parent asset, it won't change the namespace's identity.

Procs

get_htmlloaderGet a html string that will load a html asset. Needed because byond doesn't allow you to browse() to a url.

Var Details

parents

parents - list of the parent asset or assets (in name = file assoicated format) for this namespace. parent assets must be referenced by their generated url, but if an update changes a parent asset, it won't change the namespace's identity.

Proc Details

get_htmlloader

Get a html string that will load a html asset. Needed because byond doesn't allow you to browse() to a url.