Skip to content

h123eranga/capsular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capsular

Capsular

Capsular is a web framework buil in TypeScript. The framework is encourage developers to think HTML in object oriented pattern. Capsular supports the HTML5 and CSS3 standards in the development. TypeScript is a popular language among the developers all around the world. Capsular makes the developers life easy and this is the tool everyone was expecting for many years to be in real. Happy Coding with Capsular.

  • Design the Templates in TypeScript
  • Design the Controllers in TypeScript
  • Make looks better in TypeScript

Features!

  • Design the single page web applications just in seconds with the rich collection of Capsules.
  • Develop the three components Model, View, Control in same file.
  • Maintain the HTML, CSS, TypeScript in one technology.
  • Lightweight single page apps.

Tech

Capsular uses the following technologies to build your application.

  • [TypeScript] - Superset of JavaScript support Object Oriented Programming
  • [HTML5] - Markup Language structing the web components.
  • [CSS3] - Styling the web components.

Installation

The framework is under constructions!

Sample Code

export class Intro {
    items: any[] = [
        {
            title: "What is Capsular?",
            description: "Capsular is a Web Framework designed in TypeScript to develop single page web applications. The most popolar programming concept OOP is used to build an application in MVC architecture with single files. All the web components could have one .ts file which contains HTML, CSS and TypeScript."
        },
        {
            title: "How to use Capsular?",
            description: "Capsular CLI generates the empty sample app for you. Create web page components and add the routes according to the preference. Each .ts file which displays a temple should have the \"builder\" method to generate the HTML content."
        },
        {
            title: "Is it worth use the framework for development?",
            description: "Capsular supports many options to build web applications. Developers can keep View, Model, Control in single file and can use the same OOP concept in phase in the development. Capsular will save your development time and time spending on issue fixes. Capsular helps a lot on development because of maintaining HTMl, CSS, TypeScript in similar pattern."
        }
    ]
    constructor() {

    }
    build() {
        return new Div({
            children: [
                new List({
                    items: this.items,
                    builder: (items, i) => {
                        return new Div({
                            style: new Style({
                                margin: "10px 0px",
                            }),
                            children: [
                                new Div({
                                    content: items[i].title,
                                    style: new Style({
                                        background: "#1faf87",
                                        padding: "10px"
                                    })
                                }),
                                new Div({
                                    content: items[i].description,
                                    style: new Style({
                                        background: "#efefef",
                                        padding: "10px"
                                    })
                                })
                            ]
                        })
                    }
                }),
                new Div({
                    style: new Style({
                        background: "#1faf87",
                        textAlign: "center",
                        padding: "10px",
                        margin: "10px 0px"
                    }),
                    content: "Powered by Capsular ©2020. Code licensed under an MIT License. Version: demo.1.0.0"
                })
            ]
        });
    }
}

Todos

  • The framework requred to write more tests before realease the initial version
  • Needs to add more fancy elements
  • Needs to add more Native HTML elements
  • Needs to play around css3 and support in many formats

License

MIT

About

Capsular encourages to write HTML, CSS in TypeScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published