Skip to content

Instantly share code, notes, and snippets.

@t3easy
Created January 12, 2014 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t3easy/8384842 to your computer and use it in GitHub Desktop.
Save t3easy/8384842 to your computer and use it in GitHub Desktop.
lib.requireJsModule = TEXT
lib.requireJsModule {
insertData = 1
append = TEXT
append.char = 32
prepend < .append
}
lib.requireJs = COA
lib.requireJs {
# Include requirejs
stdWrap.dataWrap = <script | src="{PATH:EXT:basepackage/Resources/Public/JavaScript/require.js}"></script>
# Load modules
1389533800 < lib.requireJsModule
1389533800.value = data-main="{PATH:EXT:basepackage/Resources/Public/JavaScript/main.js}"
#1389534951 < lib.requireJsModule
#1389534951.value = data-xxx="{PATH:EXT:basepackage/Resources/Public/JavaScript/xxx.js}"
}
# Copy to footer
page.footerData.1389533787 < lib.requireJs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment