Skip to content

a Javascript library which enables users to specify functions which should be triggered when a specific url is accessed

Notifications You must be signed in to change notification settings

JABClari/volatileJS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

volatileJS

a Javascript library which enables users to specify functions which should be triggered if a specific url is accessed

Note

Library is still under development and should not be used in production.

Coming Soon

Supporting multi-layer url's ie. something/like/this

Adding other amazing features

Usage

import the file into the entry point of your application. eg. your index.php file.

open volatileJS.js

delete the HomeController and the default routes

//declare your functions
//example

var MyObject = {
myFunc:function(param)
 {
   // do something with param
 },
 mySecFunc:function()
 {
   // do Something here
 }
}


// add your routes
router.gets('/home','MyObject@myFunc',['Parameter']);
router.gets('/about','MyObject@mySecFunc');

About

a Javascript library which enables users to specify functions which should be triggered when a specific url is accessed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%