VOOZH about

URL: https://www.geeksforgeeks.org/css/foundation-css-panini-basic-templates-pages/

⇱ Foundation CSS Panini Basic Templates & Pages - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Foundation CSS Panini Basic Templates & Pages

Last Updated : 16 Oct, 2023

Foundation CSS Panini Basic Templates and Pages facilitate the generic layout design for the website & for any page, it can only use one template. The Templates and Pages usually cover the fundamental aspects of using the Foundation CSS framework in combination with the Panini static site generator This concise guide provides essential templates and page structures for building responsive web applications efficiently. Foundation CSS with Panini is a web development combination. Foundation CSS provides styling, and Panini, a Handlebars-based static site generator, simplifies templating. It streamlines creating dynamic websites with responsive design.

Syntax

<!DOCTYPE html>
<html>
<head>
 <title>{{title}}</title>
</head>

<body>
 <h1>Hello, {{name}}!</h1>
</body>

</html>

Here, the {{title}} and {{name}} are placeholders that will be replaced with actual values when rendering the template. You can pass these values using parameters when rendering the template

There are some methods that can be used to perform Foundation CSS Panini Basic Templates & Pages, which are listed below:

  • Simple Template with Panini
  • Integrating Foundation Components

We will explore all the above methods along with their basic implementation with the help of examples.

Static HTML Templates

In this approach, we will create simple static HTML templates using the Foundation CSS classes for styling. These templates can be reused for the different pages with consistent styling, Static HTML templates are pre-designed webpage structures with fixed content and layout. They're not dynamic and don't change based on user input or data.

Example: In this example, we are creating an HTML template using the Foundation CSS framework. It includes a top bar with navigation links, a content section with a title, text, and a button, and a footer with a copyright notice.

Output:

👁 Screenshot-2023-08-23-081041

Integrating Foundation Components

In this approach, we'll explore how to integrate Foundation CSS components into the Panini template. Foundation provides a wide range of UI components that can enhance the visual appeal and functionality of your website.

Example: In this example, we are using the Handlebars.js library. It features a top bar and a content section with a dynamic greeting based on the provided data. It also includes Foundation CSS for styling.

Output:

👁 Screenshot-2023-08-10-133351

Reference: https://get.foundation/sites/docs/panini.html#basics-templates-pages

Comment