Skip to content

Instantly share code, notes, and snippets.

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

Embed
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">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo yield(:title) ?></title>
</head>
<body>
<?php echo yield(:body) ?> %>
</body>
<footer>
&copy; Blah
</footer>
</html>
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.