1.2.3 • Published 10 years ago

pug.js v1.2.3

Weekly downloads
1
License
ISC
Repository
-
Last release
10 years ago
var pug = new Pug(),
    Charity = pug.schema('charity');

Charity.find(1).then(function(charity) {
  charity.get('name'); // Foobar
  charity.set('name', 'Crikey');
  charity.id(); // 1
  charity.save().then(function(charity) {

  });
});

Charity.findAll().then(function(charities) {
  var objects = charities.map(function(charity) {
    return charity.getAll(); // {id: 1, name: 'Crikey'}
  });
});
1.2.3

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago