MakeMeASandwich: Switching to raw text template!

master
Rob 2016-05-24 17:50:14 +01:00
parent 18f197d369
commit b8fda89aac
3 changed files with 10 additions and 16 deletions

View File

@ -25,13 +25,13 @@ handle remainder => sub {
return $result, structured_answer => {
data => {
result => $result,
input => $input
title => $result,
subtitle => [
{ text => $input },
{ text => "XKCD 149", href => "https://duckduckgo.com/?q=xkcd%20149" }
]
},
templates => {
options => {
content => 'DDH.make_me_asandwich.content'
},
group => 'text'
}
};

View File

@ -1,6 +0,0 @@
<div class="zci__body">
<h3 class="zci__caption zci__result">{{result}}</h3>
<h4 class="zci__subheader">
<span class="zci__operation tx-clr--lt2"><a href="https://duckduckgo.com/?q=xkcd%20149">xkcd 149</a>:</span> <span class="zci__input">{{input}}</span>
</h4>
</div>

View File

@ -18,13 +18,13 @@ sub build_test
my ($text, $input) = @_;
return test_zci($text, structured_answer => {
data => {
result => $text,
input => $input
title => $text,
subtitle => [
{ text => $input },
{ text => "XKCD 149", href => "https://duckduckgo.com/?q=xkcd%20149"}
]
},
templates => {
options => {
content => 'DDH.make_me_asandwich.content'
},
group => 'text'
}
});