• Stars
    star
    205
  • Rank 191,264 (Top 4 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 9 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

React templating for Meteor

Blaze React (devel)

Blaze React is a Meteor package which give you templates for React in a familiar Blaze API (giving you helpers, events, onRendered, onCreated etc) with a subset of Spacebars (aka Meteor flavored Handlebars).

Why React? – Well it gives us faster pageloads, SEO without Spiderable, accessibility for users without JavaScript and general improvements in page rendering speed.

Why a Blaze/Spacebars API? – Well it's way easier to learn and get started with, can't argue against that right (see examples below)?

Installation

meteor add timbrandin:blaze-react

Demo

Getting started

Currently this project is in flux until we have a preview-release, partly due to the announcement from MDG in developing a similar package that builds templates for React, but we think we can give this to you earlier than within a few months and with support for most of Blaze 1 features and Spacebars.

XXX Add example code to get started.

Features

  • .html to ReactTemplate
  • Blaze helpers
  • Blaze helper context (with the data from the context)
  • Blaze onCreated @TwinTailsX
  • Blaze events
  • Blaze onRendered @TwinTailsX
  • Blaze onDestroyed @TwinTailsX
  • Blaze autorun @TwinTailsX @facespacey
  • Blaze subscribe @TwinTailsX @facespacey
  • Spacebars {{helper}} (SafeString)
  • Spacebars {{helper ..args}} (SafeString) (with arguments)
  • Spacebars {{{helper}}} (raw HTML)
  • Spacebars {{{helper ..args}}} (raw HTML) (with arguments)
  • Spacebars "{{helper}}" (SafeString – In Attribute Values)
  • Spacebars ={{helper}} (SafeString – Dynamic Attribute Value)
  • Spacebars {{#if}}
  • Spacebars {{else}} {{/if}}
  • Spacebars {{else}} {{/if}} (nested)
  • Spacebars {{#each}}
  • Spacebars {{#each in}}
  • Spacebars {{else}} {{/each}}
  • Spacebars {{else in}} {{/each}}
  • Spacebars {{else}} {{/each}} (nested)
  • Spacebars {{#with}}
  • Spacebars {{else}} {{#with}}
  • Spacebars {{else}} {{#with}} (nested)
  • Spacebars {{#unless}}
  • Spacebars {{else}} {{/unless}}
  • Spacebars {{else}} {{/unless}} (nested)
  • Spacebars {{#helper}}} (Block helpers)
  • Spacebars {{#helper ...args}}} (Block helpers with arguments)
  • Spacebars {{/helper}}} (Block helpers)
  • Spacebars parentData()
  • Spacebars {{../../helper}}
  • Throw notice when the syntax is broken.
  • Transpilation as a Babel plugin, i.e. babel-preset-react

More Repositories

1

meteor-iosmorphic-react-templating

DEMO Meteor app with React and JSX templating (SSR)
JavaScript
39
star
2

timbrandin

Resume built with React and Gatsby.
CSS
27
star
3

meteor-crawler

A simple web-crawler.
JavaScript
11
star
4

meteor-drupal-services

An integration with the Drupal Services module
JavaScript
10
star
5

meteor-form-api

Form API for Meteor
JavaScript
7
star
6

react-templates

React Templates for Meteor
JavaScript
4
star
7

meteor-fetch

ES6 / ES2015 fetch in Meteor
JavaScript
3
star
8

equalheights

A better and improved equal heights script.
JavaScript
1
star
9

platform-idrottsportalen

Platform för idrottsportalen.se
Puppet
1
star
10

meteor-oauth1-for-apis

Better OAuth 1 for API's - solves an issue with other (content, data) options being cut off.
JavaScript
1
star
11

i18next-node-service-backend

node.js backend layer for i18next using request module to load resources from external services.
JavaScript
1
star
12

meteor-meetup-api

Meetup API using Meteor Accounts user tokens.
JavaScript
1
star
13

intromusic

Intromusic
JavaScript
1
star
14

saveikse-profile

Sävedalens AIK Installation profile 2013
PHP
1
star
15

saveikse-platform

Sävedalens AIK Platform 2013
Shell
1
star
16

meteor-svg-icon

A Meteor 1.0 Icon in SVG.
JavaScript
1
star
17

react-template-helpers

React Template helpers for easier map and if statements.
JavaScript
1
star
18

i18next-service-backend

Backend layer for i18next using external service.
JavaScript
1
star
19

starwipe

Swipe and screen transitions for React and FlowRouter.
JavaScript
1
star
20

medlemskapet

A Meteor application for a role playing game.
JavaScript
1
star
21

meteor-groups-worldmap-cached

A worldmap of Meteor Meetup Groups
JavaScript
1
star
22

meteor-crash-course

Meteor Crash Course
JavaScript
1
star
23

fowa-demo

Demo from Future Of Web Apps – London, October 2015
CSS
1
star
24

meteor-dynamic-collection-example

A reactive and dynamic collection example.
CSS
1
star
25

unboxme

Unbox Me is an "Imaginary" terminal program that gets up and running with your development environment (super quick).
1
star