Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shakyshane/js-blade
Javascript port of Laravel's Blade Templating language for Node
https://github.com/shakyshane/js-blade
Last synced: about 2 months ago
JSON representation
Javascript port of Laravel's Blade Templating language for Node
- Host: GitHub
- URL: https://github.com/shakyshane/js-blade
- Owner: shakyShane
- Created: 2014-10-12T14:09:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-29T22:06:16.000Z (about 10 years ago)
- Last Synced: 2024-04-14T07:49:48.776Z (9 months ago)
- Language: JavaScript
- Size: 375 KB
- Stars: 13
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
##JS Blade [![Build Status](https://travis-ci.org/shakyShane/js-blade.svg?branch=master)](https://travis-ci.org/shakyShane/js-blade)
> Javascript port of Laravel's Blade Templating language for NodeJS
###TODO - tags
- [x] `@section`
- [x] `@yield`
- [ ] `@extends`
- [ ] `@include`##`@section` & `@yield`
One thing that has always driven me CRAZY about all templating
languages is that they always assume that the formatting of output
is irrelevant - and it mostly is.But sometimes it's incredibly important (source code snippet, for example) - so I've decided that right from the word go, I'd fix this in js-blade.
Given this input
```html
@section("shane")Saving sections is a cool feature
Especially if indentation is respected
@stop
Yields are cool!
@yield("shane")```
In Laravel's Blade, you'd get this:
```html
Yields are cool!
Saving sections is a cool feature
Especially if indentation is respected```
But in Blade JS, you'll get exactly what you wanted
```html
Yields are cool!
Saving sections is a cool feature
Especially if indentation is respected
```