NAME

DDG::ZeroClickInfo::Spice::Data - Data that gets delivered additional to the spice call into the Javascript of the HTML

VERSION

version 1015

SYNOPSIS

Inside your spice handler

return $path_part_one, $path_part_two, data(
  key => "value",
  more_key => "more value",
  most_key => "most value - buy now!",
);

ATTRIBUTES

data

Needs a hashref of the data you want to access inside the javascript.

METHODS

add_data

Integrates the given DDG::ZeroClickInfo::Spice::Data into data object. The newer one always overrides variables already set.

AUTHOR

DuckDuckGo <open@duckduckgo.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2013 by DuckDuckGo, Inc. https://duckduckgo.com/.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004