Remove metadata from template

Remove some of the unnecessary checks in remainder
master
Zach Thompson 2015-10-30 14:26:05 -06:00
parent 97c12acd8a
commit 05bbb7b4ca
1 changed files with 3 additions and 20 deletions

View File

@ -6,32 +6,15 @@ package DDG::Goodie::<: $ia_package_name :>;
use DDG::Goodie;
use strict;
zci answer_type => "<: $lia_name :>";
zci answer_type => '<: $lia_name :>';
zci is_cached => 1;
# Metadata. See https://duck.co/duckduckhack/metadata for help in filling out this section.
name "<: $ia_name_separated :>";
description "Succinct explanation of what this instant answer does";
primary_example_queries "first example query", "second example query";
secondary_example_queries "optional -- demonstrate any additional triggers";
# Uncomment and complete: https://duck.co/duckduckhack/metadata#category
# category "";
# Uncomment and complete: https://duck.co/duckduckhack/metadata#topics
# topics "";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/<: $ia_path :>.pm";
attribution github => ["GitHubAccount", "Friendly Name"],
twitter => "twitterhandle";
# Triggers
triggers any => "triggerWord", "trigger phrase";
triggers any => 'triggerWord', 'trigger phrase';
# Handle statement
handle remainder => sub {
# optional - regex guard
# return unless qr/^\w+/;
return unless $_; # Guard against "no answer"
# Query can be accessed in $_
return $_;
};