Allow blog resources to be served without Celerity

Summary:
Allow skins to serve arbitrary resources without needing to be mapped, so we can have a vibrant community of amateur skinners.

For "basic" skins, just put all the "css/" on the page always.

Includes an image to prove that works.

@vrana, pretty sure this has no impact outside of Phame but it does change Celerity so it might be to blame if there's any weirdness with static resources.

Test Plan:
{F21341}
{F21340}

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1373

Differential Revision: https://secure.phabricator.com/D3719
This commit is contained in:
epriestley
2012-10-17 08:37:05 -07:00
parent b3ad8507af
commit 26f7425ee2
16 changed files with 341 additions and 52 deletions

View File

@@ -155,7 +155,7 @@ class AphrontDefaultApplicationConfiguration
'(?P<package>pkg/)?'.
'(?P<hash>[a-f0-9]{8})/'.
'(?P<path>.+\.(?:css|js|jpg|png|swf|gif))'
=> 'CelerityResourceController',
=> 'CelerityPhabricatorResourceController',
),
);
}