DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
    • can-construct-super
    • can-define-stream
    • can-fixture
    • can-fixture-socket
    • can-jquery
    • can-stache-converters
    • can-stream
    • can-vdom
      • types
        • window
      • modules
        • ./make-document/
        • ./make-window/
    • can-view-import
    • can-zone
    • steal-stache
  • Infrastructure
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Ecosystem
  • /
  • can-vdom
  • /
  • ./make-document/
  • / On this page
    • ./make-document/make-document

      module

      Exports a function that when called, returns a dom-light document object.

      • source

      makeDocument()

      Creates a new simple document using [can-simple-dom]. Provides light-weight document needs, mostly for server-side rendering.

      var makeDocument = require("can-vdom/make-document/make-document");
      var document = makeDocument();
      
      document.body //-> Node
      

      Returns

      {can-simple-dom/document/document}:

      A can-simple-dom document.

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.