Skip to content

Commit

Permalink
add example methods to sample plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Jan 29, 2015
1 parent d24004c commit a37e9b0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -247,6 +247,25 @@ You have the option to provide custom behavior for the following methods:
module Quarto
class TxtOutput < Plugin

def enhance_build(build)
# alter the build object
end

def finalize_build(build)
# alter the build object
end

def define_tasks
# add rake tasks
desc "Generate TXT files from the source"
task :generate_txt => generate_text
end

# Add support methods as you need
def generate_text
#... your implementation
end

end
end
```
Expand Down

0 comments on commit a37e9b0

Please sign in to comment.