GithubHelp home page GithubHelp logo

guseyn / ehtml Goto Github PK

View Code? Open in Web Editor NEW
225.0 12.0 11.0 144.19 MB

HTML as Template Language

Home Page: https://e-html.org/

License: MIT License

JavaScript 98.69% Shell 1.31%
html html-elements template-language web-components

ehtml's Introduction

v1.0.178

EHTML CI

EHTML (or Extended HTML) can be described as a set of custom elements that you can place on an HTML page for different purposes and use cases. The goal of this library is to provide a convenient way to eliminate JavaScript code on the client side as much as possible for basic and routine tasks. The biggest focus of this library is to offer the easiest way to perform AJAX operations just by using HTML. Also EHTML treat your HTML code code not only as a markup language but also as a templating language.

Simple Blog App: Demo Video

IMAGE ALT TEXT HERE

Link to source code

Simple Chat App: Demo Video

IMAGE ALT TEXT HERE

Link to source code

Contribution and QA

If you have any questions or concers about EHTML, please feel free to share them in the issues. If you want to send a patch, feel free to create a fork and send it via pull request.

ehtml's People

Contributors

dependabot[bot] avatar guseyn avatar timgates42 avatar tyleregeto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ehtml's Issues

e-table

<e-table>
    <e-th>
      <e-td>Name</e-td>
      <e-td>Email</e-td>
    </e-th>
    <e-tr>
      <e-td>${user.name}</e-td>
      <e-td>${user.email}</e-td>
    </e-tr>
</e-table>

Plan (supported tags)

  1. <get-response url="/test.html" response-type="html" ></get-response>
     <get-response url="/get_user" response-type="json" obj-name="User">
          <div class="profile">
              User:
              <div class="user-property"> {{ User.name }} </div>
              <div class="user-property"> {{ User.email }} </div>
             <div class="user-property"> {{ User.age }} </div>
         </div>
     </get-response>
  2. <post-response url="/test_by_post.html" response-type="html" ></post-response>
    <div name="profile-to-update">
         User:
         <input type="text" name="user-name"></input>
         <input type="text" name="user-email"></input>
        <input type="text" name="user-age"></input>
       <button onclick="update-user"></button>
     </div>
     <post-response name="update-user" url="/update_user" request-body="{name: user-name, email: user-email, age: user-age}" request-header="localStorage.jwt" response-type="json" obj-name="User" replace="profile-to-update">
          <div class="profile">
              User:
              <div class="user-property"> {{ User.name }} </div>
              <div class="user-property"> {{ User.email }} </div>
              <div class="user-property"> {{ User.age }} </div>
             <div class="user-property"> {{ User.promoCode }} </div>
         </div>
     </post-response>
  3.     <google-oauth-button clientId="clientId" redirectUri="./"></google-oauth-button>

4.html <youtube id="someVideoId"></youtube>

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.