GithubHelp home page GithubHelp logo

jaggedsoft / ractive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ractivejs/ractive

0.0 1.0 0.0 17.63 MB

Next-generation DOM manipulation

Home Page: http://ractivejs.org

License: MIT License

ractive's Introduction

Ractive.js - Next-generation DOM manipulation

Got questions? Tag Stack Overflow questions with ractivejs or contact @RactiveJS on Twitter

What is Ractive.js?

It's a JavaScript library for building reactive user interfaces in a way that doesn't force you into a particular framework's way of thinking. Its features include...

  • data-binding, with a beautiful declarative syntax
  • event handling that doesn't make you tear your hair out
  • flexible and performant animations and transitions

...among many others. It takes a radically different approach to DOM manipulation - one that saves both you and the browser unnecessary work.

To get a feel for how it will make your life as a web developer easier, visit ractivejs.org, follow the interactive tutorials, or try the 60 second setup.

Get help

If you don't find what you're looking for in the docs, ask a question in Google Groups forum, Stack Overflow with the ractivejs tag, or send a tweet to @RactiveJS.

Developing and building

If you want to hack on Ractive, the first step is to clone the repo and install all its development dependencies:

git clone https://github.com/ractivejs/ractive   # or your fork
cd ractive
npm install

Ractive is built with Gobble and Grunt. While developing the library, you can serve it with gobble-cli:

npm install -g gobble-cli
gobble

Navigate to localhost:4567 - you'll see three folders:

  • sandbox - this contains some template files to help with debugging. Start by copying the sandbox/sample folder and following the instructions therein
  • src - this contains all of Ractive's source code, transpiled from ES6 modules to AMD for easy debugging
  • test - the test suite (duh)

After the initial build, any subsequent changes will result in fast incremental rebuilds. If you're using Chrome, you can use the LiveReload plugin.

Gobble is still in development - please report any bugs to the issue tracker - thanks!

To run a complete build (including linting, testing and minification), you'll need to have Grunt installed. Clone the repo, navigate to the folder, then run

$ grunt

If all the build steps succeed, files will be created in the build folder.

Other grunt commands available:

# Lint the source code
$ grunt jshint

# Build the code (will run jshint first)
$ grunt build

# Run tests on the build
$ grunt qunit

# Run node non-browser tests (parse and toHTML) on the concatenated code
$ grunt nodeunit

# Rebuilds the test runners when test folders and files change (based on ./test/modules)
$ grunt buildTests

# Rebuilds the tests, runs the nodeunit tests, runs the qunit tests
$ grunt test

Contributing

Pull requests and issues are always welcome! Please read CONTRIBUTING.md to learn how to contribute.

Browser support

Tested successfully in IE8+ and all modern browsers. If your experience differs please let me know! (For legacy browser support, use the builds with legacy in the filename - these include polyfills for Array.prototype.forEach and other ES5 features used by Ractive.)

License

Copyright (c) 2012-14 Rich Harris and contributors. Released under an MIT license.

Bitdeli Badge devDependency Status

ractive's People

Contributors

rich-harris avatar martypdx avatar evs-chris avatar martinkolarik avatar jonvuri avatar marcello3d avatar codler avatar lluchs avatar tombyrer avatar rstacruz avatar amitaber avatar dgreensp avatar anton-ryzhov avatar thomsbg avatar imyelo avatar writhe avatar monsanto avatar kivikakk avatar bitdeli-chef avatar camshaft avatar emiltamas avatar doubleo2 avatar jeromegn avatar joshszep avatar max-mapper avatar msokk avatar patrickjs avatar ryanramage avatar thijsdezoete avatar ralphtheninja avatar

Watchers

jagged avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.