Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/polidog/ssrbundle

A JavaScript server side rendering for Symfony
https://github.com/polidog/ssrbundle

php7 ssr symfony-bundle symfony2 symfony3

Last synced: 4 days ago
JSON representation

A JavaScript server side rendering for Symfony

Awesome Lists containing this project

README

        

# PolidogSsrBundle

[![Build Status](https://travis-ci.org/polidog/SsrBundle.svg?branch=master)](https://travis-ci.org/polidog/SsrBundle)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/polidog/SsrBundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/polidog/SsrBundle/?branch=master)

JavaScript server side rendering (SSR) bundle for Symfony.
Inspected by [bearsunday/BEAR.SsrModule](https://github.com/bearsunday/BEAR.SsrModule)

## Prerequisites
- php7.1
- V8Js (Optional)
- Symfony3.3~

## Installation

```
$ composer require polidog/ssr-bundle "^1.0"
```

## Usage

Enable the bundle

```php
[
'name' => 'polidog',
],
'title' => 'polidog lab'
];
}
}

```

### Using CacheBaracoa

Set Annotation cache parameter.

```$xslt
/**
* @Route("/", name="homepage")
* @Ssr(
* app="index_ssr",
* state={"hello"},
* metas={"title"},
* cache=true
* )
*/
```