Skip to content

sidloki/pyramid_amdjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AmdJS for Pyramid

https://travis-ci.org/fafhrd91/pyramid_amdjs.png

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 50.8%
  • Python 48.7%
  • CSS 0.5%