Skip to content

Latest commit

 

History

History
60 lines (60 loc) · 2.42 KB

README.md

File metadata and controls

60 lines (60 loc) · 2.42 KB

Turpial JS - Micro Javascript Framework to create single page applications.

Turpial JS - Micro Javascript Framework to create SPA easily

Turpial JS is a micro library with a set of tools to create web applications. Templating engines with JSX syntax. Create, load, and use components; load dependencies sequentially whenever you want in your app, and also load files (components, views, JS files) based on the URLs. Update views easily and develop a single page application in a few steps.

Getting Started

	
	<script src="https://cdn.jsdelivr.net/gh/Yerikmiller/turpialjs/turpial.min.js"></script>
	
	

Basic Usage

	
	const turpial = new Turpial({
	  core_path: "/turpial/src/turpial-app/",
	  autoloader_folder: "views/",
	  public_path: "turpial",
	  cache: "no-store",
	  autoloader: true,
	});
	// core_path: where is alocated your turpial application (.turpial.js files)
	/* public_path: Your application root folder name. Ex: 127.0.0.1:8080/mywebpage
	 * in this case yout public_path should be "mywebpage"
	*/
	/* autoloader_folder: if you want to autoload views (turpial.js) files based on URL
	 * we can manage how will work in each case manually
	*/
	// cache: select if you want to cache files loaded
	// autoloader: set as true if you want to activate autolaoder option.
	
	

Documentation - Index

  1. Introduction
  2. HTML - Elements
  3. Mapping Elements tool
  4. Components
  5. Including components and views
  6. MVC Pattern
  7. Turpial Routes