MakeMeASandwich: Switching to raw text template!
parent
18f197d369
commit
b8fda89aac
|
@ -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'
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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>
|
|
@ -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'
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue