crhayes / blade-partials Goto Github PK
View Code? Open in Web Editor NEWIntroduces the concept of partials in blade templating. Think inline @extends functionality within your views.
Introduces the concept of partials in blade templating. Think inline @extends functionality within your views.
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>
This could be awesome for people who need implement this in L5.1 LTS :)
after install instructions request to the app fail.
php artisan dump-autoload outputs this:
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","me
ssage":"syntax error, unexpected '['","file":"...vendor\crhayes\blade-partials\src\Crhayes\BladePartials\Environment
.php","line":89}}{"error":{"type":"Symfony\Component\Debug\Exception\FatalEr
rorException","message":"syntax error, unexpected '['","file":"...vendor\crhayes\blade-partials\src\Crhayes\BladePart
ials\Environment.php","line":89}}
With the new release, I get:
FatalErrorException in ViewServiceProvider.php line 64:
Call to undefined method Illuminate\View\Compilers\BladeCompiler::createOpenMatcher()
I'm investigating this
Could you tag a new release for the laravel 4.2 fixes?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.