-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.hh
46 lines (38 loc) · 1.2 KB
/
bootstrap.hh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
<?hh
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/bsd-license.php
* @link http://titon.io
*/
/**
* --------------------------------------------------------------
* Type Aliases
* --------------------------------------------------------------
*
* Defines type aliases that are used by the view package.
*/
namespace Titon\View {
type DataMap = Map<string, mixed>;
type HelperMap = Map<string, Helper>;
}
namespace Titon\View\Engine {
type WrapperList = Vector<string>;
}
namespace Titon\View\Helper {
type AttributeMap = Map<string, mixed>;
type TagMap = Map<string, string>;
type OptionMap = Map<string, mixed>;
// Asset
type Asset = shape('path' => string, 'env' => string, 'attributes' => AttributeMap);
type ScriptMap = Map<string, Map<int, Asset>>;
type StyleSheetMap = Map<int, Asset>;
// Block
type ActiveBlockList = Vector<string>;
type BlockMap = Map<string, string>;
// Breadcrumb
type Breadcrumb = shape('title' => string, 'url' => string, 'attributes' => AttributeMap);
}
namespace Titon\View\Locator {
type LocaleList = Vector<string>;
type PathList = Vector<string>;
}