0.2.1 • Published 5 years ago

poulpe v0.2.1

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

Poulpe

Simple Data binding Javascript Project

Feature

  • Data binding with text or HTMLElement
  • Simple and speed.
  • Multi Option
  • Event system

How to use

import for the latest version from unpkg cdn poulpe.js

and see sample.

Dom

HTML code.

<div id="#sample">i'm a {{animal}}</div>

JavaScript code.

const data = {animal: "Ocotpus"}


let poulpe = new Poulpe({element:document.getElementById("sample"), data:data});

poulpe.on("end", (x) => {
    console.log(x) // x = HtmlElement
});

poulpe.run()

text

var text = "Hey i'm a {{animal}}";
var poulpe = new poulpe({element: text, data: {animal: "Octopus"}});
poulpe.on('end', (x) => {
    console.log(x) // x = 'Hey i'm a Octopus'
});

poulpe.run();

Other

change log


Event State

  • search
  • find
  • bind
  • end

sample:

var poulpe = new poulpe({...});

poulpe.on('search', function(search){
  console.log(search)
})


poulpe.on('find', function(find){
  console.log(find)
})


poulpe.on('bind', function(bind){
  console.log(bind)
});

poulpe.on('end', function(end){
  console.log(end)
});

poulpe.run();

Option

Poulpe use Parcel for build this package.

0.2.1

5 years ago

0.2.0

5 years ago

0.1.31

6 years ago

0.1.3

6 years ago

0.1.231

7 years ago

0.1.23

7 years ago

0.1.22

7 years ago

0.1.21

7 years ago