0.4.3 • Published 3 years ago

pure-framework v0.4.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Pure-framework

Pure-framework is a SPA frontend framework that uses TypeScript functions instead of HTML or JSX for view layer.

Why TypeScript?

JSX and Angular or Vue template languages are great because of their similarity with HTML, but that brings all the issues of HTML with it. Pure-framework, on the other hand, doesn't use HTML at all! Only TypeScript functions!

With TypeScript you get better syntax highlighting, better refactoring tools, and overall, better experiance coding.

Component Example

Template in pure-framework:

div({ class: ’app-root’}, [
  span(‘Hello ${this.state.name}! Welcome!‘)
]);

Equivalent template in Angular:

<div class="app-root">
  <span> Hello {{state.name}}! Welcome!</span>
</div>

Master's Thesis

This framework is developed as a part of a Master's thesis on Mathematical Faculty at the University of Belgrade. Pure-framework is a frontend framework designed around concepts of functional programming and custom Redux-like state management system. The basic principles that this framework leverages are:

  • Pure functions
  • Memoization
  • Observables (RxJs)
  • Type safety (TypeScript)

Check out an example of the app writen using pure-framework on this repo.

License

MIT License

Copyright (c) 2021 Aleksandar Milosavljević

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0.4.3

3 years ago

0.3.5

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.4.2

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.1.2

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago