Skip to content

itk-dev/mock-up-bundle

Repository files navigation

Mock-up bundle

A Symfony bundle for building html mock-ups.

Installation

composer require itk-dev/mock-up-bundle

Add ItkDev\MockUpBundle\ItkDevMockUpBundle to config/bundles.php:

return [
    …,
    ItkDev\MockUpBundle\ItkDevMockUpBundle::class => ['all' => true],
];

Import routes in config/routes/itkdev_mockup.yaml, say:

itkdev_mockup:
    prefix: /mock-up
    resource: "@ItkDevMockUpBundle/Resources/config/routes.xml"

Use

Create mock-up templates in templates/mock-up and go to /mock-up (prefix key from config/routes/itkdev_mockup.yaml).