<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Org::To::HTML - Export Org document to HTML

VERSION
    version 0.07

SYNOPSIS
     use Org::To::HTML qw(org_to_html);

     # non-OO interface
     my $res = org_to_html(
         source_file   =&gt; 'todo.org', # or source_str
         #target_file  =&gt; 'todo.html', # defaults return the HTML in $res-&gt;[2]
         #html_title   =&gt; 'My Todo List', # defaults to file name
         #include_tags =&gt; [...], # default exports all tags.
         #exclude_tags =&gt; [...], # behavior mimics emacs's include/exclude rule
         #css_url      =&gt; '/path/to/my/style.css', # default none
         #naked        =&gt; 0, # if set to 1, no HTML/HEAD/BODY will be output.
     );
     die "Failed" unless $res-&gt;[0] == 200;

     # OO interface
     my $oeh = Org::To::HTML-&gt;new();
     my $html = $oeh-&gt;export($doc); # $doc is Org::Document object

DESCRIPTION
    Export Org format to HTML. To customize, you can subclass this module.

    This module uses Log::Any logging framework.

    This module uses Moo for object system.

    This module's functions have Sub::Spec specs.

ATTRIBUTES
  naked =&gt; BOOL
    If set to true, export_document() will not output HTML/HEAD/BODY
    wrapping element. Default is false.

  html_title =&gt; STR
    Title to use in TITLE element. If unset, defaults to "(no title)" when
    exporting.

  css_url =&gt; STR
    If set, export_document() will output a LINK element pointing to this
    CSS.

METHODS
  $exp-&gt;export_document($doc) =&gt; HTML
    Export document to HTML.

FUNCTIONS
    None is exported by default, but they can be.

SEE ALSO
    Org::Parser

FUNCTIONS
  org_to_html(%args) -&gt; [status, msg, result, meta]
    Export Org document to HTML.

    This is the non-OO interface. For more customization, consider
    subclassing Org::To::HTML.

    Arguments ('*' denotes required arguments):

    *   css_url =&gt; *str*

        Add a link to CSS document.

    *   exclude_tags =&gt; *array*

        Exclude trees that carry one of these tags.

        If the whole document doesn't have any of these tags, then the whole
        document will be exported. Otherwise, trees that do not carry one of
        these tags will be excluded. If a selected tree is a subtree, the
        heading hierarchy above it will also be selected for export, but not
        the text below those headings.

        excludetags is evaluated after includetags.

    *   html_title =&gt; *str*

        HTML document title, defaults to source_file.

    *   include_tags =&gt; *array*

        Include trees that carry one of these tags.

        Works like Org's 'org-export-select-tags' variable. If the whole
        document doesn't have any of these tags, then the whole document
        will be exported. Otherwise, trees that do not carry one of these
        tags will be excluded. If a selected tree is a subtree, the heading
        hierarchy above it will also be selected for export, but not the
        text below those headings.

    *   naked =&gt; *bool*

        Don't wrap exported HTML with HTML/HEAD/BODY elements.

    *   source_file =&gt; *str*

        Source Org file to export.

    *   source_str =&gt; *str*

        Alternatively you can specify Org string directly.

    *   target_file =&gt; *str*

        HTML file to write to.

        If not specified, HTML string will be returned.

    Return value:

    Returns an enveloped result (an array). First element (status) is an
    integer containing HTTP status code (200 means OK, 4xx caller error, 5xx
    function error). Second element (msg) is a string containing error
    message, or 'OK' if status is 200. Third element (result) is optional,
    the actual result. Fourth element (meta) is called result metadata and
    is optional, a hash that contains extra information.

AUTHOR
    Steven Haryanto &lt;stevenharyanto@gmail.com&gt;

COPYRIGHT AND LICENSE
    This software is copyright (c) 2012 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.

</pre></body></html>