Skip to content
Anthony Short edited this page Aug 15, 2010 · 2 revisions

This extension rewrites all relative URLs in url() functions and @import rules so that they are absolute. The reason for this is that if the browser is requesting the file:

<link href="/scaffold/parse.php?file=master.css" />

The browser will be looking for files relative to the /scaffold/ folder.

Settings

This extension has no settings.

Hooks

This extension has no hooks.

Public Methods

find_imports($string)

Finds all @import rules and returns an array of matches.

find_url_functions($url)

Finds all url() functions within a string.