Skip to content
dannyglue edited this page Nov 3, 2011 · 31 revisions

Documentations of Rose::DBx::Object::Builder and Rose::DBx::Object::Renderer can be found on CPAN:

Kickstart Tutorials

Cloud Deployment

Sublime Text Snippets

  1. Download the snippets: http://db.tt/9Yr1sYhF
  2. Untar and put it in:

~/Library/Application Support/Sublime Text 2/Packages/User

Textmate Bundle

  1. Download the zipped Bundle: http://db.tt/AxQ9LYm
  2. Unzip and double click to open in Textmate

Here is a list of the snippets triggered by tab: http://db.tt/89u3hv3

Vim Snippets

  1. Install snipMate http://www.vim.org/scripts/script.php?script_id=2540
  2. Download the zipped snippet: http://db.tt/gBPLUpg
  3. In your console/terminal, run unzip ./rdor.snippets.zip -d ~/.vim/snippets/

To enable the snippets, you need to type :set filetype=perl.rdor in Vim. You can automate this step by appending this line:

au BufRead,BufNewFile *.pl,*.pm set filetype=perl.rdor

to your ~/.vimrc file. The line essentially enables both Perl and Rose-DBx-Object-Renderer snippets on files with .pl or .pm extensions. In this case, your ~/.vimrc file should look like

:filetype plugin on
:syntax on
au BufRead,BufNewFile *.pl,*.pm set filetype=perl.rdor

Alternatively, you can create a file in ~/.vim/ftdetect/perl_rdor.vim and add the line to that file to achieve the same effect. When editing a new file or opening a file without .pl or .pm extensions, e.g. .cgi, you can always type :set ft=perl.rdor to manually set the file type.

(Thanks to Gary Ashton-Jones for creating the snippet file and Cees Hek for Vim setup suggestions)

Clone this wiki locally