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 unless qr/^\w+|\d{5}$/;
return "plain text response", return 'plain text response',
structured_answer => { structured_answer => {
data => { data => {
title => "My Instant Answer Title", title => 'My Instant Answer Title',
subtitle => "My Subtitle", subtitle => 'My Subtitle',
# image => "http://website.com/image.png", # image => 'http://website.com/image.png',
}, },
templates => { templates => {
group => "text", group => 'text',
# options => { # options => {
# #
# } # }

View File

@ -18,7 +18,7 @@ triggers <: $ia_trigger :>;
# Handle statement # Handle statement
handle <: $ia_handler :> => sub { handle <: $ia_handler :> => sub {
return "plain text response", return 'plain text response',
structured_answer => { structured_answer => {
data => { data => {
@ -26,7 +26,7 @@ handle <: $ia_handler :> => sub {
}, },
templates => { templates => {
group => "text", group => 'text',
# options => { # options => {
# #
# } # }

View File

@ -3,7 +3,7 @@ DDH.<: $ia_id :> = DDH.<: $ia_id :> || {};
(function(DDH) { (function(DDH) {
"use strict"; "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 // define private variables and functions here
// //
@ -18,8 +18,8 @@ DDH.<: $ia_id :> = DDH.<: $ia_id :> || {};
return { return {
meta: { meta: {
sourceName: "Source Domain", sourceName: 'Source Domain',
sourceUrl: "https://source.website.com" sourceUrl: 'https://source.website.com'
}, },
// data: { // data: {

View File

@ -6,7 +6,7 @@ use Test::More;
use Test::Deep; use Test::Deep;
use DDG::Test::Goodie; use DDG::Test::Goodie;
zci answer_type => "<: $ia_id :>"; zci answer_type => '<: $ia_id :>';
zci is_cached => 1; zci is_cached => 1;
# Build a structured answer that should match the response from the # Build a structured answer that should match the response from the
@ -14,17 +14,17 @@ zci is_cached => 1;
sub build_structured_answer { sub build_structured_answer {
my @test_params = @_; my @test_params = @_;
return "plain text response", return 'plain text response',
structured_answer => { structured_answer => {
data => { data => {
title => "My Instant Answer Title", title => 'My Instant Answer Title',
subtitle => "My Subtitle", subtitle => 'My Subtitle',
# image => "http://website.com/image.png", # image => 'http://website.com/image.png',
}, },
templates => { templates => {
group => "text", group => 'text',
# options => { # options => {
# #
# } # }