This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [url "https://github.com/"] | |
| insteadOf = "gh:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.fn.extend | |
| myplugin: (options) -> | |
| self = $.fn.myplugin | |
| opts = $.extend {}, self.default_options, options | |
| $(this).each (i, el) -> | |
| self.init el, opts | |
| self.log el if opts.log | |
| $.extend $.fn.myplugin, | |
| default_options: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # by default, django 404 and 500 pages dont pass context to templates. | |
| # as you almost *always* need context variables in your custom | |
| # 404/500 templates, you might need MEDIA_URL for example | |
| # | |
| # you need to create a custom view for errors and register it in your urls.py | |
| # | |
| # in urls.py add : | |
| # | |
| # handler500 = handler404 = views.server_error |
NewerOlder