@defining("foo") { title=>
<div>@title</div>
...
}
basically, you have to wrap the block in which you are going to use it
More Related Contents:
- How to create a template in HTML?
- What happens if the meta tags are present in the document body?
- How to specify model to a ngInclude directive in AngularJS?
- How to serve uploaded files in Play!2 using Scala?
- Scala start Play server in production
- CSS margin terror; Margin adds space outside parent element [duplicate]
- How can I convert an HTML element to a canvas element?
- CSS Single-column layout centered fixed-width 100% height w header and footer
- Send email from static page hosted on GitHub Pages
- Add target=”_blank” in CSS
- Center image element in parent div
- What is the best way to embed LaTeX in a webpage?
- Why is the span’s line-height useless?
- Rendering HTML elements to
- Disable double-tap “zoom” option in browser on touch devices
- How to download file using anchor tag
- Link to a section of a webpage
- Is there a way to bookmark or link to a section of a page without an anchor?
- HTML: how to force links to open in a new tab, not new window [duplicate]
- Is google.loader.clientlocation still supported
- Equal width columns in CSS Grid
- How to align entire html body to the center?
- Zoom to fit: PDF Embedded in HTML
- Can you tab through all radio buttons?
- How to make a radio button look like a toggle button
- How to Preload Images without Javascript?
- Styling autocomplete dropdowns in browsers
- Giving background-color to body applying whole page. Why?
- HTML5: camera access
- How to get the text from the HTML5 input field error message in Selenium?