Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[bml] r134: LJINT-362 (Comments for side projects): ...

Committer: ailyin
LJINT-362 (Comments for side projects): checkpoint commit; the scheme with redirects/iframes works now
U   trunk/lib/Apache/BML.pm
Modified: trunk/lib/Apache/BML.pm
===================================================================
--- trunk/lib/Apache/BML.pm	2010-11-11 05:56:08 UTC (rev 133)
+++ trunk/lib/Apache/BML.pm	2010-12-20 07:37:47 UTC (rev 134)
@@ -1322,6 +1322,20 @@
                                 $vars);
 }
 
+sub render_page {
+    my ($vars) = @_;
+
+    my $bmlcode = '';
+
+    foreach my $key ( keys %$vars ) {
+        $bmlcode .= "$key<=\n";
+        $bmlcode .= ebml($vars->{$key}) . "\n";
+        $bmlcode .= "<=$key\n";
+    }
+
+    return Apache::BML::bml_block( $Apache::BML::cur_req, 'PAGE', $bmlcode, {} );
+}
+
 sub get_scheme
 {
     return undef unless Apache::BML::is_initialized();

Tags: andy, bml, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments