Permalink
Browse files

Merge pull request #31 from nikcub/master

Use long-style tags in templates.
  • Loading branch information...
2 parents 8522650 + 467e317 commit 0380e2e4b170fbc1ae0ee6c365735e5756536f95 @berkerpeksag berkerpeksag committed Feb 9, 2013
@@ -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 0380e2e

Please sign in to comment.