madelyneriksen / dashml Goto Github PK
View Code? Open in Web Editor NEWComposable Python functions to generate HTML
Home Page: https://dashml.readthedocs.io/en/latest/
License: MIT License
Composable Python functions to generate HTML
Home Page: https://dashml.readthedocs.io/en/latest/
License: MIT License
Most things are stuffed into dashml.core
and exposed through the __all__
special object. This is fine, but I can split things out from core
into files so it's slightly neater.
DashML should be able to render non-string types.
true
should keep the attribute and false
should remove it.This will be implemented in core.swap_attributes
.
It would be great to have some docs for DashML. The API is really, really simple, but I could get into a lot more detail than I can in just the README.
The lxml library doesn't have type definitions, so creating a stub for those would be really helpful. DashML would be completely typed with that addition.
Right now, DashML provides a render method that outputs a unicode string. This is really portable, but I can make it easier to use DashML in projects by providing "shortcuts" for different frameworks.
We would add a shortcuts
module to DashML that contains functions to transform DashML functions into framework-specific HTTP response objects (or whatever the framework uses). Like a render
for any given framework.
response.html
functions.HTMLResponse
helper.There's no "escape hatch" for DashML- all code goes through the sanitizer so you can't inject html. A solution for this would be an unsafe_from_string
method, that converts a string representation of an element into a DashML component.
This is basically going to be a wrapper of lxml.html.fromstring
, but in DashML with a scary name to discourage use.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.