The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 1017

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