Git Product home page Git Product logo

any-renderer-pretty-html's Introduction

NAME
    Any::Renderer::Pretty::HTML - Render data structures through
    Data::Format::Pretty::HTML

VERSION
    version 0.01

SYNOPSIS
     use Any::Renderer;

     my %options = (table_column_orders => [[qw/a b/]]);
     my $format  = "Pretty::HTML";
     my $r = Any::Renderer->new($format, \%options);

     my $data_structure = [...]; # arbitrary structure
     my $string = $r->render($data_structure);

DESCRIPTION
    Any::Renderer::Pretty::HTML renders any Perl data structure passed to it
    with Data::Format::Pretty::HTML. For example:

     [{a=>11, b=>12}, {a=>21, c=>23}, {b=>32, c=>33}]

    will be rendered into something like:

     <table>
       <tr>
         <th>a</th>
         <td>b</th>
         <th>c</th>
       </tr>
       <tr>
         <td>11</td>
         <td>12</td>
         <td></td>
       </tr>
       <tr>
         <td>21</td>
         <td></td>
         <td>23</td>
       </tr>
       <tr>
         <td></td>
         <td>32</td>
         <td>33</td>
       </tr>
     </table>

    See Data::Format::Pretty::HTML for more details on the formatting.

METHODS
  new($format, \%options)
    $format must be "Pretty::HTML". See "OPTIONS" for valid \%options.

  $r->render($data_structure) => STRING
    The main method.

  FUNCTIONS
    None is exported.

  requires_template($format) => BOOL
    Will return false.

  available_formats() => ARRAYREF
    Will return ['Pretty::HTML'].

OPTIONS
    Options are format_pretty() options. See Data::Format::Pretty::HTML for
    available options.

SEE ALSO
    Data::Format::Pretty::HTML

AUTHOR
    Steven Haryanto <[email protected]>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2011 by Steven Haryanto.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

any-renderer-pretty-html's People

Contributors

sharyanto avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.