# Copyright (c) 2010 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: HTML.pm,v 1.1 2010/12/07 20:06:47 nagler Exp $ package Bivio::UI::XHTML::Widget::WikiText::HTML; use strict; use Bivio::Base 'XHTMLWidget.WikiTextTag'; use Bivio::UI::ViewLanguageAUTOLOAD; our($VERSION) = sprintf('%d.%02d', q$Revision: 1.1 $ =~ /\d+/g); sub ACCEPTS_CHILDREN { return 1; } sub handle_register { return [qw(b-html)]; } sub parse_tag_start { sub PARSE_TAG_START {[]}; my($proto, $args, $attrs) = shift->parameters(@_); my($state) = $args->{state}; return unless $proto; $args->{content} = join("\n", @{$proto->parse_lines_till_end_tag($args) || []}); return 1; } sub render_html { sub RENDER_HTML {[]}; my($proto, $args, $attrs) = shift->parameters(@_); return unless $proto; return $args->{content}; } 1;