forked from jasonlewis/basset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.php
33 lines (31 loc) · 959 Bytes
/
routes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
*
* Example Basset Route
*
* -----------------------------------------------------------------------
*
* The following are example routes, one CSS and one JS, that you can use
* as a model for your own routes.
*
* Routes for Basset are very simple, the method is either 'styles' or
* 'scripts' depending on what you want to use, the first parameter is the
* route that will be handled. For example:
*
* Basset::styles('website', function($basset) {});
*
* The above will generate a route for yoursite.com/basset/website.css
* Note the extension is placed automatically for you. You can change
* the 'basset' by configuring the 'handles' option in your
* application/bundles.php file.
*
* Please refer to the README.md for further help.
*/
Basset::styles('example', function($basset)
{
$basset->add('website', 'website.css');
});
Basset::scripts('example', function($basset)
{
$basset->add('jquery', 'jquery.js');
});