Ng Polymorpheus

screenshot of Ng Polymorpheus
angular
express

Ng Polymorpheus

Polymorpheus is a tiny library for polymorphic templates in Angular.

Overview

Polymorpheus is an open-source library for polymorphic templates in Angular. It is a lightweight library, weighing only 1 KB when gzipped. It provides a simple structural directive that allows you to customize views in Angular in different ways, such as accepting primitives, functions, templates, or components as content. The library aims to make it easy to adapt content to different situations, offering flexibility and customization options.

Features

  • Structural Directive: Polymorpheus provides a structural directive that abstracts over different ways of view customization in Angular.
  • Accepts Primitives: The directive can accept primitives like numbers or strings as content.
  • Accepts Functions: Functions that take context as an argument and return a primitive can also be used as content.
  • Accepts Templates: Templates that get instantiated with a given context can be passed as content.
  • Accepts Components: Components that would get context injected through Dependency Injection (DI) can be used as content.
  • Optional Context: The context is optional when you need your content to adapt to the situation.
angular
Angular

Angular is a TypeScript-based open-source framework by Google for building dynamic single-page applications and cross-platform mobile apps with MVC architecture and a rich set of features.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

template
Templates & Themes

A template or theme refers to a pre-designed layout or structure that provides a basic framework for building a specific type of application or website. It typically includes good design, placeholder content and functional features, allowing developers to customize and fill in the details according to their specific needs.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

webpack
Webpack

Webpack is a popular open-source module bundler for JavaScript applications that bundles and optimizes the code and its dependencies for production-ready deployment. It can also be used to transform other types of assets such as CSS, images, and fonts.