Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] conditional block #4

Open
younes0 opened this issue Jun 13, 2014 · 1 comment
Open

[Proposal] conditional block #4

younes0 opened this issue Jun 13, 2014 · 1 comment

Comments

@younes0
Copy link
Contributor

younes0 commented Jun 13, 2014

Let's say that I'd like to add a panel-footer to the example:

<div class="panel panel-@render('type', 'default')">
    <div class="panel-heading">
        <h3 class="panel-title">@render('title', 'Default Title')</h3>
    </div>
    <div class="panel-body">
        @render('body', 'Default Body')
    </div>
    @if (has('footer'))
        <div class="panel-footer">
            @render('footer')
        </div>
    @endif
</div> 
@lahaxearnaud
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants