Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (80 sloc) 2.5 KB
Here we define each front end module. They are in the format:
JS = {
'module_name': ('path/to/compressed.js', [
There is a javascript and a CSS dict. Modules that contain both js and css
should be named the same.
There are multiple consumers of these dicts.
Scriptb uses this for concatenation and compression of the production files.
The templates/require.html module uses them as well:
<%namespace name="r" file="/require.html"/>
${r.require('core', 'test')}
The above would add all css and js includes from both the core and test modules
defined in this file. It will include the proper files depending on whether the
app is in production or dev.
import os
PROJECT_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
'JS': {
'base': os.path.join(PROJECT_PATH, 'public', 'j'),
'type': 'js'
'CSS': {
'base': os.path.join(PROJECT_PATH, 'public', 'c'),
'type': 'css'
JS = {
'core': ('build/core.js', [
'test': ('build/modules/tests.js',[
'controllers.auth': ('build/controllers/auth.js', ['controllers/auth.js']),
'controllers.admin': ('build/controllers/admin.js', [
CSS = {
'core': ('build/core.css', [
'test': ('build/modules/test.css', [
'ie': ('build/ie.css', ['ie.css']),
'controllers.admin': ('build/controllers/admin.css', [