06.02.2013 Views

Advanced Customisation: Scripting EPrints

Advanced Customisation: Scripting EPrints

Advanced Customisation: Scripting EPrints

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Render Methods: Session<br />

� Session provides many useful Web page<br />

building blocks<br />

� make_doc_fragment()<br />

� create an empty XHTML document<br />

� fill it with things!<br />

� make_text(text)<br />

� create an XML TextNode<br />

� make_element(name, attrs)<br />

� create an XHTML Element<br />

make_element("p", align => "right")<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!