rivets

WebJar for rivets

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

rivets
Последняя версия

Последняя версия

0.9.6
Дата

Дата

Тип

Тип

jar
Описание

Описание

rivets
WebJar for rivets
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mikeric/rivets

Скачать rivets

Имя Файла Размер
rivets-0.9.6.pom
rivets-0.9.6.jar 1 MB
rivets-0.9.6-sources.jar 22 bytes
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/rivets/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>rivets</artifactId>
    <version>0.9.6</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/rivets/
implementation 'org.webjars.bower:rivets:0.9.6'
// https://jarcasting.com/artifacts/org.webjars.bower/rivets/
implementation ("org.webjars.bower:rivets:0.9.6")
'org.webjars.bower:rivets:jar:0.9.6'
<dependency org="org.webjars.bower" name="rivets" rev="0.9.6">
  <artifact name="rivets" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='rivets', version='0.9.6')
)
libraryDependencies += "org.webjars.bower" % "rivets" % "0.9.6"
[org.webjars.bower/rivets "0.9.6"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bower : sightglass jar [0.2.4,0.3)

Модули Проекта

Данный проект не имеет модулей.

Rivets.js

Rivets.js is a lightweight data binding and templating system that facilitates building data-driven views. It is agnostic about every aspect of a front-end MV(C|VM|P) stack, making it easy to introduce it into your current workflow or to use it as part of your own custom front-end stack comprised of other libraries.

Usage

<section id="auction">
  <h3>{ auction.product.name }</h3>
  <p>Current bid: { auction.currentBid | money }</p>

  <aside rv-if="auction.timeLeft | lt 120">
    Hurry up! There is { auction.timeLeft | time } left.
  </aside>
</section>
rivets.bind($('#auction'), {auction: auction})

Getting Started and Documentation

Documentation is available on the homepage. Learn by reading the Guide and refer to the Binder Reference to see what binders are available to you out-of-the-box.

Building and Testing

First install any development dependencies.

$ npm install

Building

Rivets.js uses gulp as its build tool. Run the following task to compile + minify the source into dist/.

$ gulp build

Testing

Rivets.js uses mocha as its testing framework, alongside should for expectations and sinon for spies, stubs and mocks. Run the following to run the full test suite.

$ npm test

Contributing

Bug Reporting

  1. Ensure the bug can be reproduced on the latest master.
  2. Open an issue on GitHub and include an isolated JSFiddle demonstration of the bug. The more information you provide, the easier it will be to validate and fix.

Pull Requests

  1. Fork the repository and create a topic branch.
  2. Make sure not to commit any changes under dist/ as they will surely cause conflicts for others later. Files under dist/ are only committed when a new build is released.
  3. Include tests that cover any changes or additions that you've made.
  4. Push your topic branch to your fork and submit a pull request. Include details about the changes as well as a reference to related issue(s).

Версии библиотеки

Версия
0.9.6
0.8.1