diff --git a/template/lib/DDG/Goodie/Example.pm b/template/lib/DDG/Goodie/Example.pm index 24200008d..cf8255e35 100644 --- a/template/lib/DDG/Goodie/Example.pm +++ b/template/lib/DDG/Goodie/Example.pm @@ -31,17 +31,17 @@ handle <: $ia_handler :> => sub { # # return unless qr/^\w+|\d{5}$/; - return "plain text response", + return 'plain text response', structured_answer => { data => { - title => "My Instant Answer Title", - subtitle => "My Subtitle", - # image => "http://website.com/image.png", + title => 'My Instant Answer Title', + subtitle => 'My Subtitle', + # image => 'http://website.com/image.png', }, templates => { - group => "text", + group => 'text', # options => { # # } diff --git a/template/lib/DDG/Goodie/Minimal.pm b/template/lib/DDG/Goodie/Minimal.pm index 4904b8268..262c23a3c 100644 --- a/template/lib/DDG/Goodie/Minimal.pm +++ b/template/lib/DDG/Goodie/Minimal.pm @@ -18,7 +18,7 @@ triggers <: $ia_trigger :>; # Handle statement handle <: $ia_handler :> => sub { - return "plain text response", + return 'plain text response', structured_answer => { data => { @@ -26,7 +26,7 @@ handle <: $ia_handler :> => sub { }, templates => { - group => "text", + group => 'text', # options => { # # } diff --git a/template/share/goodie/example/example.js b/template/share/goodie/example/example.js index b941426fb..568c3f6ed 100644 --- a/template/share/goodie/example/example.js +++ b/template/share/goodie/example/example.js @@ -3,7 +3,7 @@ DDH.<: $ia_id :> = DDH.<: $ia_id :> || {}; (function(DDH) { "use strict"; - console.log("DDH.<: $ia_id :>.build"); // remove this before submitting pull request + console.log('DDH.<: $ia_id :>.build'); // remove this before submitting pull request // define private variables and functions here // @@ -18,8 +18,8 @@ DDH.<: $ia_id :> = DDH.<: $ia_id :> || {}; return { meta: { - sourceName: "Source Domain", - sourceUrl: "https://source.website.com" + sourceName: 'Source Domain', + sourceUrl: 'https://source.website.com' }, // data: { diff --git a/template/t/Example.t b/template/t/Example.t index 6569bafec..7db4e640a 100644 --- a/template/t/Example.t +++ b/template/t/Example.t @@ -6,7 +6,7 @@ use Test::More; use Test::Deep; use DDG::Test::Goodie; -zci answer_type => "<: $ia_id :>"; +zci answer_type => '<: $ia_id :>'; zci is_cached => 1; # Build a structured answer that should match the response from the @@ -14,17 +14,17 @@ zci is_cached => 1; sub build_structured_answer { my @test_params = @_; - return "plain text response", + return 'plain text response', structured_answer => { data => { - title => "My Instant Answer Title", - subtitle => "My Subtitle", - # image => "http://website.com/image.png", + title => 'My Instant Answer Title', + subtitle => 'My Subtitle', + # image => 'http://website.com/image.png', }, templates => { - group => "text", + group => 'text', # options => { # # }