25 releases

✓ Uses Rust 2018 edition

0.1.1 Jun 30, 2020
0.1.0 Jun 27, 2020
0.0.24 Jun 26, 2020
0.0.3 May 31, 2020

#63 in Template engine

Download history 204/week @ 2020-05-30 90/week @ 2020-06-06 34/week @ 2020-06-13 76/week @ 2020-06-20 75/week @ 2020-06-27

145 downloads per month

MIT/Apache

1.5MB
817 lines

Rdxl Scaffolding

Crates.IO Documentation Build Nightly Build

Prefabricated HTML components

xhtml!(<!ProgressBar numerator=12 denominator=32 unit="MB"/>)

This UI scaffolding is meant to abstract over many possible display logics. Whether it be a site redesign, or an entirely separate platform, Rdxl is meant to provide only a thin logical abstraction rather than an opinionated UI framework. The concept of "Minimal Common Abstraction" will be the unifying design concept herewithin.

A common concept in Rdxl is the "View as data, not Display" idiom. This pattern is a small extension of the MVC pattern. In any Model/View/Controller codebase there may be multiple Views, for Desktop vs Mobile for instance; however, it is desirable that the Models and Controllers need not change significantly for these separate views to be performed. To encourage this consolidation of models and controllers, Rdxl Scaffolding defines the base of each view as a simple XML document. The user visible UI is generated from these XML common components. This is helpful whether you exchange data from the server as XML or JSON, as long as these objects are serializable.

Dependency injection is supported through another crate called mxml.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in rdxl_scaffolding by you, shall be dual licensed under the MIT and Apache 2.0 license without any additional terms or conditions.

Dependencies

~4MB
~77K SLoC