This framework is a little project, base on a main scripting language, PHP, I append support for some different scripting language that is compile on JavaScript or on CSS.
Languages support by the framework :
Cascading style sheet preprocessor :
- SCSS
- SASS
- LESS
JavaScript preprocessor :
- CoffeeScript
- ECMAScript 2015
This framework is base on route object that use route to access on a specific controller. That create the view using some models objects and functions. Before controller execute, execution task can be execute.
Create a route is easy :
Route::on( 'url', [/* here depens also tasks */], function( array $args = null ) {
# do stuff here
});
url can be pcre expression, but slash are automaticly backslash.
To show a view the php file must be in views directory. Call a view it is easy :
echo View::make( filename, arguments, layout );
Classes and functions are on models directory.