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

[ljcom] r10222: BML-less BML template file ftw

Committer: ailyin
BML-less BML template file ftw
U   trunk/htdocs/template.bml
Modified: trunk/htdocs/template.bml
===================================================================
--- trunk/htdocs/template.bml	2011-03-11 03:09:20 UTC (rev 10221)
+++ trunk/htdocs/template.bml	2011-03-11 03:31:55 UTC (rev 10222)
@@ -1,18 +1,14 @@
-<?page
-body<=
-<?_code
-{
-    use strict;
-    use vars qw(%GET %POST $title $headextra @errors @warnings);
+<?_code {
+#line 3
 
-    $title = 'Template BML Page!';
+use strict;
+use warnings;
 
-    return 'Template!';
-}
-_code?>
-<=body
-title=><?_code return $title; _code?>
-head<=
-<?_code return $headextra; _code?>
-<=head
-page?>
+$title = 'Template BML Page!';
+
+return BML::render_page({
+    'body' => 'Template!',
+    'title' => $title,
+});
+
+} _code?>

Tags: andy, bml, ljcom
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