The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Bible::OBML::HTML - Manipulate Google/GMail Tasks

VERSION

version 1.03

SYNOPSIS

DESCRIPTION

This module renders a reasonably reusable HTML block from OBML in either text, file, or data sources. "Reasonably reusable" means that it is a block of HTML without header or "HTML" tag and contains HTML5-valid HTML, mostly in the form of DIV tags and other symantically expected nested HTML.

The intent here is that if you have OBML and need to view it in some nicer form, like on a web site, you can use this module's methods to generate a core block of HTML, which you'd then wrap with whatever HTML wrapper and CSS you'd like.

    use Bible::OBML::HTML;
    my $self = Bible::OBML::HTML->new;

    $self->from_obml($obml);
    $self->from_file($filename);
    $self->from_data($data);

    $self->from_obml( $obml,     $skip_smartify );
    $self->from_file( $filename, $skip_smartify );
    $self->from_data( $data,     $skip_smartify );

METHODS

from_obml

This method accepts a string (assumed to contain valid OBML) and returns HTML.

    $self->from_obml($obml);

A second optional boolean can be provided, and if true, will cause the method to skip running the "smartify" method on the content.

    $self->from_obml( $obml, 1 );

from_file

This method accepts a string containing a filename (the file is assumed to contain valid OBML) and returns HTML.

    $self->from_file($filename);

A second optional boolean can be provided, and if true, will cause the method to skip running the "smartify" method on the content.

    $self->from_file( $filename, 1 );

from_data

This method accepts a data structure that's a result of parsing OBML and returns HTML.

    $self->from_data($data);

A second optional boolean can be provided, and if true, will cause the method to skip running the "smartify" method on the content.

    $self->from_data( $data, 1 );

ATTRIBUTES

obml

This module has an attribute of "obml" which contains a reference to an instance of Bible::OBML.

SEE ALSO

Bible::OBML, Bible::OBML::Reference.

You can also look for additional information at:

AUTHOR

Gryphon Shafer <gryphon@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Gryphon Shafer.

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