bespokejs / bespoke

DIY Presentation Micro-Framework
http://markdalgleish.com/projects/bespoke.js/
MIT License
4.68k stars 443 forks source link

不想用nodejs, 不能使用吗? #46

Closed yaojaa closed 9 years ago

yaojaa commented 9 years ago

不想用nodejs, 不能使用吗?看不懂文档。

markdalgleish commented 9 years ago

Sorry, I'm not sure what your issue is. Google Translate wasn't much help.

Are you asking if you can use bespoke without using node? If that's your question, you can use browser globals like this:

bespoke.from('#presentation', [
  bespoke.plugins.keys(),
  bespoke.plugins.touch(),
  etc...
]

This approach requires using the UMD scripts available in the dist directory of each project.

yaojaa commented 9 years ago

Thank you very much! I used v1.0.0 bespoke.min.js like your code demo, but not work 。the v0.4.0 can。 - -!

markdalgleish commented 9 years ago

Closing this issue since Bespoke works fine with and without node, although node is certainly the preferred option. If you're having any issues getting set up, your best option is to use the official Yeoman generator described in the readme.