Changes between Version 12 and Version 13 of PadrePluginSnippet
- Timestamp:
- 03/06/12 15:46:19 (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PadrePluginSnippet
v12 v13 1 [[PageOutline(1-4)]] 1 2 This is used to document the finding about the Padre::Plugin::Snippets plugin and the {{{TextMate/snipMate}}} integration that I have been planning with {{{bowtie (Kevin)}}} and implementing at the moment in {{{Padre::Plugin::Moose}}}. We will eventually migrate this feature into this plugin once it is mature. 2 3 … … 21 22 22 23 - Snippet mode ON: 24 == Sample snippet file 25 {{{#!application/x-yaml 26 --- 27 # 28 # Moose snippets bundle for Padre::Plugin::Moose 29 # Written by Ahmad M. Zawawi (azawawi) 30 # 31 # Adapted from 'TextMate Bundle for Moose' by Chris Prather (perigrin) 32 # https://github.com/perigrin/perl-moose.tmbundle/Snippets 33 # 23 34 35 # after method modifier 36 after: | 37 after '${1:method_name}' => sub { 38 ${2:# body...} 39 }; 40 41 # before method modifier 42 before: | 43 before '${1:method_name}' => sub { 44 ${2:# body...} 45 }; 46 47 # Property 48 has: has '${1:property}' => ( is => '${2:rw}', isa => '${3:Str}', ); 49 }}} 24 50 == TODO == 25 51
