Changes between Version 12 and Version 13 of PadrePluginSnippet


Ignore:
Timestamp:
03/06/12 15:46:19 (2 years ago)
Author:
bowtie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PadrePluginSnippet

    v12 v13  
     1[[PageOutline(1-4)]] 
    12This 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. 
    23 
     
    2122   
    2223- 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#  
    2334 
     35# after method modifier 
     36after: | 
     37  after '${1:method_name}' => sub { 
     38      ${2:# body...} 
     39  };  
     40 
     41# before method modifier 
     42before: | 
     43  before '${1:method_name}' => sub { 
     44      ${2:# body...} 
     45  };  
     46 
     47# Property 
     48has: has '${1:property}' => ( is => '${2:rw}', isa  => '${3:Str}', ); 
     49}}} 
    2450== TODO == 
    2551