Permalink
Browse files

long tags in templates

  • Loading branch information...
nikcub committed Feb 9, 2013
1 parent 86150cc commit 467e3173c6b86a77d68b8399bdae54085ce0d70a
@@ -1,3 +1,3 @@
-<h2><a href="/article/<?= $article['slug']; ?>"><?= $article['title']; ?></a></h2>
-<div><?= Markdown($article['body']); ?></div>
+<h2><a href="/article/<?php echo $article['slug']; ?>"><?php echo $article['title']; ?></a></h2>
+<div><?php echo Markdown($article['body']); ?></div>
<hr />
@@ -1,3 +1,3 @@
-<strong><?= $comment['name']; ?></strong> commented:
-<div><?= Markdown($comment['body']); ?></div>
+<strong><?php echo $comment['name']; ?></strong> commented:
+<div><?php echo Markdown($comment['body']); ?></div>
<hr />
@@ -1,15 +1,15 @@
<h1>Blog</h1>
<? include("_article.php"); ?>
-<h3>Comments (<?= count($comments); ?>)</h3>
-<?
+<h3>Comments (<?php echo count($comments); ?>)</h3>
+<?php
foreach ($comments as $comment) {
include("_comment.php");
}
?>
<h4>Add Comment</h4>
-<form method="post" action="/article/<?= $article['slug']; ?>/comment">
+<form method="post" action="/article/<?php echo $article['slug']; ?>/comment">
<strong>Name:</strong><br/>
<input type="text" name="name" /><br/>
<strong>Message:</strong><br/>
@@ -1,6 +1,6 @@
<h1>Blog</h1>
-<?
+<?php
foreach ($articles as $article) {
include("_article.php");
}

0 comments on commit 467e317

Please sign in to comment.