braincrafted / bootstrap-bundle

BraincraftedBootstrapBundle integrates Bootstrap into Symfony2 by providing templates, Twig extensions, services and commands.
http://bootstrap.braincrafted.com
MIT License
399 stars 182 forks source link

Use url option instead if href attribute #385

Closed bigfoot90 closed 9 years ago

bigfoot90 commented 9 years ago

Update to my last commit https://github.com/braincrafted/bootstrap-bundle/pull/383

This PR allows using button_link like that (shorten and more intuitive)

{{ button_link({
            'label': 'Test',
            'url': 'example.com',
}) }}

instead of

{{ button_link({
            'label': 'Test',
            'attr': {
                'href': 'example.com',
            },
}) }}

@florianeckerstorfer Please merge this small update