Template: Use of single quotes

master
sdua 2016-07-05 15:58:33 +00:00
parent 8c4075e9c5
commit f2db9cd6a5
4 changed files with 16 additions and 16 deletions

View File

@ -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 => {
#
# }

View File

@ -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 => {
#
# }

View File

@ -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: {

View File

@ -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 => {
#
# }