• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    CoffeeScript
  • Created almost 11 years ago
  • Updated almost 11 years ago

Reviews

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

Repository Details

Compile Jade templates to React.DOM expressions

jade-react

Compile Jade templates to React de-sugared JSX.

.container-fluid.readme
  .row
    h1= this.storeName
    ul
    each product in this.products
      li
        | Product
        = product.title

into

function () {
  function map (obj, fn) {
    if ('number' === typeof obj.length) return obj.map(fn);
    var result = [], key, hasProp = {}.hasOwnProperty;
    for (key in obj) hasProp.call(obj, key) && result.push(fn(key, obj[key]));
    return result;
  }

  return React.DOM.div({
    "className": "container-fluid readme"
  },
    React.DOM.div({
      "className": "row"
    },
      React.DOM.h1(null,
        this.storeName
      ),
      React.DOM.ul(null),
        map(this.products, function (product, $index) {
          return React.DOM.li(null,
            "Product",
            product.title
          );
        }
      )
    )
  );
}

More Repositories

1

rails_view_annotator

Wraps the rendering of Rails partials with html comments indicating the disk location of the rendered partial
Ruby
32
star
2

gulp-jade-react

Compile Jade templates into React de-sugared JSX with Gulp
CoffeeScript
24
star
3

transmission-web-ui

Test-driven implementation of Transmission BitTorrent Client Web Interface
JavaScript
17
star
4

swf_object_helper

Rails Plugin: Embed Adobe Flash content using swfobject 2.1
Ruby
9
star
5

FlashPreloadProfiler

ActionScript
6
star
6

default_scope

Rails Plugin: define a scope applied to every query on a model
Ruby
6
star
7

Revolt

ActionScript3 sound spectrum visualizer and playback tool
ActionScript
6
star
8

sheller

Simplified, unified interface to shell commands
Ruby
5
star
9

asset_packager

Rails plugin: package javascripts into single file for deploy using yuicompressor
Ruby
5
star
10

find_random

Rails Plugin: Find one or more random records from an ActiveRecord association
Ruby
4
star
11

sql_sleuth

Rails Plugin: Append selective backtrace information to slow SQL query log entries
Ruby
4
star
12

ball_gag

Censor and validate user input using pluggable back-ends
Ruby
4
star
13

denormalizes

Rails Plugin: Observer behaviour for ActiveRecord models to denormalize information off of other models
Ruby
4
star
14

SecureEscrow

Secure AJAX-style actions for Rails applications
Ruby
3
star
15

pdxjs.com

Official website of the Portland JavaScript Admirers
JavaScript
3
star
16

node-parseColor

Parse color strings
JavaScript
3
star
17

rails_plugin_skeleton

Template for quickly building a Rails plugin
Ruby
3
star
18

packaging_javascript_demo

Support Application written in Sinatra to demonstrate some of the points in the Packaging JavaScript presentation
JavaScript
3
star
19

alter_table

Rails Plugin: perform multiple mysql table schema operations simultaneously
Ruby
3
star
20

named_scope_for

Rails Plugin: macros for adding attribute-specific scopes and orderings to ActiveRecord models
Ruby
3
star
21

in_place_form_builder

Use the same forms for editable and static views of your data
Ruby
3
star
22

templated_form_builder

Rails Plugin: Use template files for form elements
Ruby
3
star
23

drupal_storefinder

Forked storefinder module for drupal
2
star
24

populate_association_lazily

Rails Plugin: Populate associations using primitive instances (hashes, arrays) instead of class instances
Ruby
2
star
25

model_pagination

Rails Plugin: Real-world pagination for large datasets
Ruby
2
star
26

bobble

Simulated asynch for JavaScript
JavaScript
2
star
27

duncanbeevers.com

duncanbeevers.com wintersmith
CoffeeScript
2
star
28

core_extension_loader

Rails Plugin: Load extensions from lib/core_extensions at plugin load time
Ruby
2
star
29

fluid_beanstalk_activity_refresh

Periodically refresh the Activity Overview screen of a beanstalk app project in the Fluid SSB
JavaScript
2
star
30

late_feeder

deferred access to ActiveRecord collections
Ruby
1
star
31

postcss-discard-empty

Discard empty rules and values with PostCSS.
JavaScript
1
star
32

node-Toposort

Naive Topological Sort
JavaScript
1
star
33

swf_recompress

Ruby
1
star
34

node-ContextChain

A Fluent interface for CanvasRenderingContext2D
JavaScript
1
star
35

avs-loader

Winamp AVS preset to JSON loader for webpack
JavaScript
1
star
36

alias-vose

Haxe implementation and demonstration of Michael Vose's variation on Alias tables for generating random numbers with an arbitrary distribution
Haxe
1
star