Skip to content

Commit

Permalink
Merge pull request #31 from nikcub/master
Browse files Browse the repository at this point in the history
Use long-style tags in templates.
  • Loading branch information
berkerpeksag committed Feb 9, 2013
2 parents 8522650 + 467e317 commit 0380e2e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/blog/views/_article.php
@@ -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 />
4 changes: 2 additions & 2 deletions examples/blog/views/_comment.php
@@ -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 />
6 changes: 3 additions & 3 deletions examples/blog/views/article.php
@@ -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/>
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/views/articles.php
@@ -1,6 +1,6 @@
<h1>Blog</h1>

<?
<?php
foreach ($articles as $article) {
include("_article.php");
}
Expand Down

0 comments on commit 0380e2e

Please sign in to comment.