Download the PHP package lastcall/mannequin-drupal without Composer
On this page you can find all versions of the php package lastcall/mannequin-drupal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lastcall/mannequin-drupal
More information about lastcall/mannequin-drupal
Files in lastcall/mannequin-drupal
Package mannequin-drupal
Short Description Drupal extension for the Mannequin template viewer
License MIT
Informations about the package mannequin-drupal
Mannequin Drupal is brought to you by your friends at Last Call Media, it is a command line application that you can use to visualize and work on your Drupal Twig Templates in the browser. For example, you might use it to work on the templates inside of an existing custom theme.
Quick Start
Using Composer, install Mannequin Drupal from your project root. From the command line:
Next, create a new .mannequin.php
file in your project root. This file is where you will configure Mannequin. Inside of that file:
See all of the view an example project
Setting up Components
While the .mannequin.php
file tells Mannequin where to find your components, you still need to describe them to Mannequin. To do that, we use a special YAML formatted comment block at the top of your twig files. For example, to describe a "Card" component living inside of card.html.twig
, you would add the following at the top of the file:
See the full YAML reference here
Workflow
When you're ready to begin work on your templates, you can use the following worklow:
-
Fire up a live development server so you can see your component. From the command line:
- This will output a URL for the Mannequin UI. Visit it in your browser.
- In the UI, find the component you want to work on.
- Open the file, and make your changes.
- Reload the UI to see how your changes look.
All versions of mannequin-drupal with dependencies
symfony/finder Version ^2.7 ||^3.0
lastcall/mannequin-core Version ~1.0
lastcall/mannequin-twig Version ~1.0