Skip to content

Instantly share code, notes, and snippets.

@b1nary b1nary/index.php
Last active Nov 9, 2017

What would you like to do?
PHP yield?
<?php layout("Title goes here"){ ?>
Content in here should yield into the body
<?php } ?>
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo yield(:title) ?></title>
<?php echo yield(:body) ?> %>
&copy; Blah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.