분류 javascript

서버측 렌더링 및 쉬운 학습 프레임 워크

컨텐츠 정보

  • 조회 196 (작성일 )

본문

https://github.com/astoilkov/jsblocks

http://jsblocks.com/

 

<!DOCTYPE html>
<html>
  <head>
    <script src="http://jsblocks.com/blocks/0.3.2/blocks.js"></script>
    <script>
      blocks.query({
        firstName: blocks.observable()
      });
    </script>
  </head>
  <body>
    Name:
    <input data-query="val(firstName)" placeholder="Enter your name here" />
    <hr />
    <h1>Hello {{firstName}}!</h1>
  </body>
</html>