0.4.88 • Published 8 years ago

atlant.js v0.4.88

Weekly downloads
120
License
-
Repository
-
Last release
8 years ago

#Atlant.js

Atlant.js

Atlant.js is a micro-routing framework for React.js

It provides robust routing and dependency injection mechanism.

It uses bacon.js streams to work.

Examples and documentation are on the way.

The slides folder have slides of April 10 of 2014. The talk was about previous version of atlant.js named routeStreams.js. DSL is a little obsolete.

##Which renders available?

  • react render

##Installation

bower install atlant.js

add to you index.html:

<script src="lodash.min.js" type="text/javascipt"></script>
<script src="bacon.min.js" type="text/javascipt"></script>
<script src="atlant.js" type="text/javascipt"></script>

API

On it's way.

Flow

Atlant watches when you touch links and manages them. use a attribute data-atlant="ignore" to skip this.

How it look's like?

atlant 
    .when('/', _ => atlant.stream().render(<Home/>).end() )
    .when('/login', _ => atlant.stream().render(<Login/>).end() )
    .when('/@:profileName', _ => atlant.stream()  
                            .select('profile').from('Profiles').where( _ => _.params.profileName )
                            .draw(<Profile/>, 'profileView')
                            .depends(_ => $.get(`/api/profiles/${_}`)).where( _ => _.params.profileName).as('profileFromBE')
                            .update('PROFILE').with(_ => _.profileFromBE)
                            .subscribe('warn')
                            .end()
    )
    .action('warn', _ => { console.log('Data Arrived!'); return Promise.resolve() } )

Awesome isn't it?

Examples

Just install dependencies and open examples/index.html in browser.

bower install

Actually, no examples inside yet.

0.4.88

8 years ago

0.4.87

8 years ago

0.4.85

8 years ago

0.4.83

8 years ago

0.4.82

8 years ago

0.4.81

8 years ago

0.4.80

8 years ago

0.4.79

8 years ago

0.4.78

8 years ago

0.4.77

8 years ago

0.4.76

8 years ago

0.4.75

8 years ago

0.4.74

8 years ago

0.4.73

8 years ago

0.4.70

8 years ago

0.4.69

8 years ago

0.4.30

9 years ago

0.4.29

9 years ago

0.4.27

9 years ago

0.4.26

9 years ago

0.4.25

9 years ago

0.4.24

9 years ago

0.4.23

9 years ago

0.4.21

9 years ago

0.4.20

9 years ago

0.4.18

9 years ago

0.4.17

9 years ago

0.4.15

9 years ago

0.4.14

9 years ago

0.4.13

9 years ago

0.4.7

9 years ago

0.4.7-a

9 years ago

0.4.6

9 years ago

0.4.5

9 years ago

0.4.3

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.2.12

10 years ago

0.2.7

10 years ago

0.1.4

10 years ago