GithubHelp home page GithubHelp logo

tradejmark / jbind Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 152 KB

A lightweight library for binding HTML element text and attributes to values supplied by Kotlin/JS code

License: MIT License

Kotlin 100.00%

jbind's People

Contributors

tradejmark avatar

Watchers

 avatar

jbind's Issues

Add Decrypt Transformation

Decryption was an example of functionality that I could think of for Transformations, and I think it's a nice-to-have to offer a default one.

Add functionality for middleman processors and binding inner elements instead of just inner text

Say the content you want to bind to the text of an element is supposed to have a link in it. Now what? You make a separate bind for the link? What if you want to remove the link without altering the static HTML you're serving, because the link is essentially content and not structure? And what about the text that comes after the link? How do you represent that? This library just doesn't much work at all for scenarios like this right now. This functionality is mainly to allow you to, for example, process the provided value as Markdown and produce an HTML element to inject into the parent's content, which would really solve this. It also adds interesting potential for scenarios like decrypting values if users have permissions to view them.

Allow binding of entire objects

This would bind all values associated with a particular element to associated attributes. A deserializer will also be provided to recover the object given the element (potentially useful from within a web component, for example).

Implement arrays

This will allow for arrays, where children of an array parent are bound relative to the array child of the same index.

Add interface from pure JS

Would be kind of cool if you could access the library from JS. I think I would want to make some sort of mapping between Flows and web workers, but it's probably possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.