Symfony2 bundle that integrates various third party libraries to provide a sensible platform for rapid frontend development.

Installs: 224

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 20

Forks: 4

Open Issues: 0



0.2 2016-08-11 19:31 UTC

This package is not auto-updated.

Last update: 2022-01-14 08:24:26 UTC


This bundle holds the general style guide that should be used at HauteLook for all backend (admin) applications. It uses less to compile the CSS files. It also includes a base layout.html.twig file that should be extended by the application.


Require the package with composer (this will install all the dependencies such as Twitter Bootstrap, Font-Awesome, etc.):

$ composer require "hautelook/frontend-bundle"

You then need to make sure that the Assetic Bundle is in the Kernel:

// app/AppKernel.php

$bundles = array(
    new Symfony\Bundle\AsseticBundle\AsseticBundle(),
    new Hautelook\FrontendBundle\HautelookFrontendBundle(),

and include the assetic.yml config file in the bundle:

# app/config/config.yml

- { resource: ../../vendor/hautelook/frontend-bundle/Hautelook/FrontendBundle/Resources/config/assetic.yml }

You should now be able to

$ app/console assets:install
$ app/console assetic:dump


You should create your own application/bundle specific layout.html.twig file that extends from the layout bundle's one. That way you can set the application specific settings such as the Navigation bar (application title, as well as the menu), as well as the title.


{% extends 'HautelookFrontendBundle::layout.html.twig' %}

{% block application_title %} — Hautelook Application{% endblock application_title %}

{% block header %}
    <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <a href="/" class="navbar-brand">
                    <i class="fa fa-lock"></i>
                    Hautelook Application
                    <span class="hl-theme-color"></span>
{% endblock header %}


There are still quite a few todos.

  • Get rid of the jQuery vendor files in Resources/public/js
  • Add the right hand Navbar with login information (requires Gravatar bundle)
  • Add tests (Run Assetic:dump, Twig lint)
  • Figure out if there is a better way to manage the assetic configuration in a way that does not store the whole assetic config file in the bundle (inflexible), but also does not suck.