pbelyaev / laravel-blade-compiler Goto Github PK
View Code? Open in Web Editor NEW[NOT MAINTAINED] NPM Package that compiles Blade template language to HTML
License: MIT License
[NOT MAINTAINED] NPM Package that compiles Blade template language to HTML
License: MIT License
There are some Laravel Blade template's methods that don't work yet.
The stack method:
@stack('scripts')
And the push method as well:
@push('scripts')
<script src="path/to/script.js"></script>
@endpush
It has to be able to pass data
Should test node 7 too.
UPD. wait until that'll be possible to do
Looks like Travis-CI wasn't passing on my previous PR.
https://travis-ci.org/pbelyaev/laravel-blade-parser/builds/154937250
Not sure if we need a .travis.yml file in the top-level (it seems to be defaulting to Ruby server), or if you just want to turn off Travis-CI for this repo. ¯_(ツ)_/¯
Sections with @endsection on the end doesn't work.
For example:
@section('name')
<p>Section content.</p>
@endsection
Now it is laravel-blade-compiler
Hey, could you please add the option to disable extending?
In some case i want to use only @include
directive. Well, we all noticed, that module just for getting HTML, then bemjson and bemdecl. So, excluding might help to reduce code of enb config (and time), cuz in other case we must use bemTechs.subtractDeps
. I'm talking about in not all cases we need to have in decl: page, i-bem and etc. I mean
<script src="/public/views/bundles/all-bem-stuff.js"></script>
<script src="/public/views/bundles/exactly-that-bundle.js"></script>
That make sense for using with laravel, though.
Thanks.
{{--@include('template')--}}
The code above will try to include the commented template.
This code doesn't compile correctly:
@section('javascript')
@parent
<p>Hello from child!</p>
@endsection
htmlparser2
does not use in this package.
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.