всем привет!
Помогите пожалуйста:
как создать JSLink на файлики в свой_проект/static/javascript/имя_файла.js
mochikit = JSLink(“turbogears”, “js/MochiKit.js”)
<SCRIPT SRC=“/tg_widgets/turbogears/js/MochiKit.js” TYPE=“text/javascript”/>
а мне нужен
<SCRIPT SRC=“/static/javascript/MochiKit.js” TYPE=“text/javascript”/>
код предложенный на http://untidy.net/blog/2006/04/20/turbogears-local-js-link/
не подойдет, т.к. при рунается, что такая возможность будет предоставлена только в TG1.0b1
————————————————–
TurboGears Version Info
* turbogears 0.9a6
* nose 0.8.6
* configobj 4.3.1
* ruledispatch 0.5a0.dev-r2115
* setuptools 0.6a11
* formencode 0.5.1
* celementtree 1.0.5-20051216
* pastescript 0.5.1
* elementtree 1.2.6
* simplejson 1.3
* sqlobject 0.7.1dev-r1675
* cherrypy 2.2.1
* turbokid 0.9.5
* turbocheetah 0.9.5
* turbojson 0.9.2
* pyprotocols 1.0a0dev-r2082
* cheetah 1.0
* pastedeploy 0.5
* paste 0.5
* formencode 0.5.1
* kid 0.9.1
* cheetah 1.0
* elementtree 1.2.6
Installed Plugins
Identity Providers
* sqlobject (turbogears 0.9a6)
* sqlalchemy (turbogears 0.9a6)
tg-admin Commands
* info (turbogears 0.9a6)
* shell (turbogears 0.9a6)
* quickstart (turbogears 0.9a6)
* update (turbogears 0.9a6)
* sql (turbogears 0.9a6)
* i18n (turbogears 0.9a6)
* toolbox (turbogears 0.9a6)
Visit Managers
* sqlobject (turbogears 0.9a6)
* sqlalchemy (turbogears 0.9a6)
Template Engines
* kid (turbokid 0.9.5)
* cheetah (turbocheetah 0.9.5)
* json (turbojson 0.9.2)
Widget Packages
* dominclude (dominclude 1.0)
* lightbox (lightbox 2.0-p1)
* scriptaculous (scriptaculous 1.6)
* jumpmenu (jumpmenu 1.0)
* moofx (moofx 1.2.4w2)
* tinymce (turbotinymce 1.0.3)
* selectshuttle (select-shuttle 0.94)
TurboGears Extensions
* visit (turbogears 0.9a6)
* identity (turbogears 0.9a6)
* fastdata (tgfastdata 0.9a6)