Pyramid JS/CSS resource management with curl.js
Project description
pyramid_amdjs allows to manage js and css resources as amdjs modules
config.include('pyramid_amdjs')
config.add_amd_js(
'jquery', 'pyramid_amdjs:static/lib/jquery-1.8.2.min.js',
'JQuery Library')
Then you can use jquery in your amd module
define('my-package', ['jquery'],
function($) {
$('...').
}
)
To include your module to page:
def my_view(request):
request.require_js('my-package')
Support and Documentation
On irc, use the freenode network and find us on channels, #ptahproject and #pyramid.
Documentation can be found in docs directory. You can also see it online at http://pyramid_amdjs.readthedocs.org/
Report bugs at pyramid_amdjs @ Github
License
pyramid_amdjs is offered under the MIT license.
CHANGES
0.5.2 (01-18-2013)
Fix css resource registration
0.5.1 (01-18-2013)
Do not add .css to css module name
request.require alias for require_js
0.5 (01-17-2013)
js refactoring
hb templates splited to separate js
datetime hb helper is optional
added backbonejs
0.4 (01-15-2013)
Automatic mods inclusion
Static resource management
jQuery 1.9.0
0.3.2 (01-08-2013)
Fixed reading resource files with non ascii content
0.3.1 (01-07-2013)
Show amd module define exception (curljs)
Added helper pform js mod
0.3 (01-03-2013)
Added debug mode
Added _v query param that allow stong caching
curl.js 0.7.3
uglify.js 1.3.4
0.2.1 (12-18-2012)
Fixed: use route_url for amd ini js path
0.2 (12-11-2012)
Added twitter bootstrap (2.2.2)
Allow to pass all params in options for pyramid.Object (javascript)
0.1 (11-01-2012)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyramid_amdjs-0.5.2.tar.gz
.
File metadata
- Download URL: pyramid_amdjs-0.5.2.tar.gz
- Upload date:
- Size: 230.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9363f6fdc29b15d3010ab7860498ab8661d6556bf9d590260e70866658607d |
|
MD5 | da800abd70b2fc7e47a93a877b6e84d2 |
|
BLAKE2b-256 | 9442ecfcb16e2060ddeb296cc928c51798174e87e3e8966d7cb5015185f1ccab |