Ravenel

Yet another dynamic content engine
Download

Ravenel Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ryan Alan Dietrich
  • Publisher web site:
  • http://search.cpan.org/~rdietrich/sql-simple-0.07/lib/Sql/Simple.pm

Ravenel Tags


Ravenel Description

Yet another dynamic content engine Ravenel is a Perl module that can generate a code to generate this page as well. Simply point your function to an external package, give it a name attribute, and turn the dynamic option off, and you're off to the races. Let me be clear, when "dynamic" is set to 0, this module will take a template, and generate CODE, a package to be exact, that you can then run to generate a document dynamically. The code generated is all of the work that the parser would have done on any tag it can identify off the bat. my $res = Ravenel::Document- >render( { 'data' = > qq(< r:MyPackage:droid >motorola< /r:MyPackage:droid >), 'name' = > 'test', 'dynamic' = > 0, } ); print $res . "\n";The value of "$res" is below: package test; use strict; use warnings; use Ravenel; use Ravenel::Block; use Ravenel::Document; use Data::Dumper; use MyPackage; sub get_html_content { my $class = shift if ( $_ eq 'test' ); my $args = shift; my $dynamic_content = []; my $content_type = 'html'; $dynamic_content- > = Ravenel::Document- >scan("r:", 'html', MyPackage- >droid( new Ravenel::Block( { 'tag_arguments' = > { }, 'blocks_by_name' = > { 'default' = > "motorola", }, 'arguments' => $args, 'content_type' => $content_type, 'format_arguments' = > { }, } ) )); my $body = < < HERE_I_AM_DONE $dynamic_content- > HERE_I_AM_DONE ; chomp($body); return $body; } Requirements: · Perl


Ravenel Related Software