Giter VIP home page Giter VIP logo

templates's Introduction

Templates

Base framework for creating UI templates that are compiled for running both on server-side and client-side (in javascript).

Example template can be found in Index.html. Not prefixed html tags are outputed as they are, those with prefix are instantiated and processess dynamicly. Beside html tags, also syntax in form {Binding Abc} is processed dynamicly. And special meaning has also prefixed html attributes, which are processed as extensions (or observers) on the original html tag.

More details about template processing can be found on our WIKI

templates's People

Contributors

maraf avatar

Watchers

James Cloos avatar  avatar

templates's Issues

Create content parser using Microsoft.Html.Core

From master, create an implementation of IContentParser using Microsoft.Html.Core.

This library has support for invalid/uncomplete HTML and so is ideal for use in the editor.
Skip curly tokenizer and value parsers for now.

Next generation UI templates

Next generation templates for UI should not only String Builder for HTML.
We should use progressive enhancement.

1) String Builder mode

As in original version, we should support generating HTML to string and than pasting it into the DOM. This mode will be compatible for both server and client rendering mode.

2) Manual DOM manipulation

A views can have named controls. These controls can that be accessed after rendering is completed. Such controls can than modify DOM. Eg.: TextBox can read and write current value.
This mode will be available in client mode. Also, we should try to support rebuilding javascript instance of view from server rendered HTML.

3) Two way binding

As an enriched mode of number 2, we would create a two way binding between model and UI.
This mode is suspect to discussion.

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.