Ⅰ. 插件描述
Asynchronous templates for the browser and node.jsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jimmyhchan/dustjs-would-can-one'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jimmyhchan/dustjs-would-can-one'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jimmyhchan/dustjs-would-can-one'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jimmyhchan/dustjs
Ⅳ. 文档说明
Asynchronous Javascript templating for the browser and server. This fork is maintained by LinkedIn.
Install
NPM
Important: We recommend that you lock your version of Dust to a specific minor version, instead of a major version. By default, NPM will add "dustjs-linkedin": "^2.x.y" to your package.json, which will install new minor versions automatically.
npm install --save --production dustjs-linkedin
# If you want the dustc compiler available globally
npm install --global --production dustjs-linkedin
If you want to add the Dust helpers or secure filters:
npm install --save --production dustjs-helpers
npm install --save --production dustjs-filters-secure
Bower
bower install --save dustjs-linkedin
Get Started
- Read dustjs.com for guides, tutorials, and documentation.
- Check out the
examples/directory in the repo for simple examples to help you get started using Dust in a variety of ways.
Contribute
- The team provides support on Stack Overflow, so that's the best place to ask questions.
- Bug or feature? We welcome issues and pull requests! If you'd like to submit a PR, check out the guide to contributing. PRs should include unit tests.
