Get support for goetas/twital-bundle

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

goetas/twital-bundle

Build Status Scrutinizer Quality Score Code Coverage GitHub license Packagist

TwitalBundle (Twital with Symfony)

TwitalBundle is a Symfony bundle that integrates the Twital template engine into Synfony2 framework. This enables you to use all Twig/Symfony functionalities with the Twital template engine language syntax.

To learn more about Twital, you can read the dedicated documentation.

Install

The recommended way to install TwitalBundle is using Composer:

composer require 'goetas/twital-bundle'

If you are using Symfony Flex, the bundle will be automatically enabled and configured, otherwise follow the next steps.

Enable the bundle

To enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Goetas\TwitalBundle\GoetasTwitalBundle(),
        //..
    );
}

Configure

In order to make it work, you have to enable the twital template engine inside your config.yml.

framework:
    templating:
        engines: ['twig', 'twital']
        
#optional configurations for file extension matching 
goetas_twital:
    source_adapter:
        - { service: twital.source_adapter.xml, pattern: ['/\.xml\.twital$/', '/\.atom\.twital$/'] }
        - { service: twital.source_adapter.html5, pattern: ['/\.html\.twital$/', '/\.htm\.twital$/'] }
        - { service: twital.source_adapter.xhtml, pattern: ['/\.xhtml\.twital$/'] }    

Documentation

Go here http://twitalbundle.readthedocs.org/ to read a more detailed documentation about TwitalBundle.

Integration

TwitalBundle comes with all features that are already supported by TwigBundle (forms, translations, assetic, routing, etc).

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

p-e622a1a2