Created
April 13, 2014 10:13
-
-
Save greenlaw110/10577724 to your computer and use it in GitHub Desktop.
layout template with @inherited()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- | |
To change this license header, choose License Headers in Project Properties. | |
To change this template file, choose Tools | Templates | |
and open the template in the editor. | |
--> | |
<html> | |
<head> | |
<title>title</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width"> | |
</head> | |
<body> | |
@render(body) { | |
<p>default body</p> | |
} | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends(layout) | |
@section(body) { | |
<p>main body</p> | |
@inherited() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- | |
To change this license header, choose License Headers in Project Properties. | |
To change this template file, choose Tools | Templates | |
and open the template in the editor. | |
--> | |
<html> | |
<head> | |
<title>titlee</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width"> | |
</head> | |
<body> | |
<p>main body</p> | |
<p> | |
default body | |
</p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment