Origami Frontend Components & Services

SassDoc: o-assets

o-assets-global-path

Default global path to assets

Links

o-assets-paths-map

Cast the asset map

It should contain pairs such as o-module: path/to/module/assets

Links

oAssetsResolve(asset, module)

Resolve the full path to an asset

parameter type default description
asset path to an asset, relative to the module's root
module name of the module

Returns

Example

el { background: url(oAssetsResolve("img/symbols-sprite.png", o-weather)); }

Links

oAssetsSetModulePaths(path-map)

Set asset paths for one or multiple modules

parameter type default description
path-map Set of module names and paths

Example

@include oAssetsSetModulePaths((
  o-header: /assets/header
));

Links

Switch component view

GitHub Repository

Install o-assets

If using the Build Service, add o-assets@^3.4.1 to your script and link tags.

If running a Manual Build, run bower install --save "o-assets@^3.4.1".

Help & Support

o-assets is maintained directly by the Origami team. If you have any questions about o-assets or Origami in general, we are happy to help. 😊

Slack: #ft-origami
Email: origami.support@ft.com

Feedback / Issues

To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊

Slack: #ft-origami
Email: origami.support@ft.com