SRF (Simple Routing Framework) is a JavaScript framework designed to simplify web application development. It provides a set of features and utilities to streamline the coding process, allowing developers to build web applications with ease.
- Routing: Define routes and associate them with handlers to handle navigation within the application.
- Page Manipulation: Manipulate the page content dynamically by updating the title, body, and appending components.
- Query Parameters: Easily retrieve and work with query parameters from the current URL.
- Redirects: Redirect users to different pages within the application.
- HTTP Requests: Make HTTP GET and POST requests to retrieve and send data to servers.
- Template and Script Loading: Load templates and scripts dynamically for enhanced functionality.
- UI Components: Create simple UI components without the need for extensive design work.
- Modular Class Structure: Built-in modular class structure for organizing and creating applications.
To get started with SRF, follow these steps:
- Import SRF into your index.html file.
- Create an instance of the SRF class.
- Define routes and associate them with handlers to handle navigation.
- Use page manipulation methods to update the page content.
- Retrieve and work with query parameters using the provided utilities.
- Make HTTP requests to fetch and send data.
- Load templates and scripts dynamically for enhanced functionality.
- Create UI components using the built-in features.
- Organize your application using the modular class structure.
For detailed documentation and examples, please refer to the SRF Framework Home Page.
- Latest version
- bundle: https://srf.smsk.me/dist/srf.js
- code:
html <script src="https://srf.smsk.me/dist/srf.js"></script>
- code:
- core: https://srf.smsk.me/dist/srf.core.js
- code:
html <script src="https://srf.smsk.me/dist/srf.core.js"></script>
- code:
- components: https://srf.smsk.me/dist/srf.components.js
- code:
html <script src="https://srf.smsk.me/dist/srf.components.js"></script>
- code:
- bundle: https://srf.smsk.me/dist/srf.js
- devsimsek - Developer and maintainer
This project is licensed under the MIT License.