ó
R\c           @   s>   d  Z  d d l Z d d l Z d e j j f d „  ƒ  YZ d S(   s±   A Tornado UI module for a terminal backed by terminado.

See the Tornado docs for information on UI modules:
http://www.tornadoweb.org/en/stable/guide/templates.html#ui-modules
iÿÿÿÿNt   Terminalc           B   s)   e  Z d  d d „ Z d „  Z d „  Z RS(   iP   i   c         C   s   d j  d | d | d | ƒ S(   Ns_   <div class="terminado-container" data-ws-url="{ws_url}" data-rows="{rows}" data-cols="{cols}"/>t   ws_urlt   rowst   cols(   t   format(   t   selfR   R   R   (    (    s1   lib/python2.7/site-packages/terminado/uimodule.pyt   render   s    	c         C   s
   d d g S(   Ns   /xstatic/termjs/term.jss   /static/terminado.js(    (   R   (    (    s1   lib/python2.7/site-packages/terminado/uimodule.pyt   javascript_files   s    c         C   sD   t  j j t  j j t ƒ d ƒ } t | ƒ  } | j ƒ  SWd  QXd  S(   Ns   uimod_embed.js(   t   ost   patht   joint   dirnamet   __file__t   opent   read(   R   t   filet   f(    (    s1   lib/python2.7/site-packages/terminado/uimodule.pyt   embedded_javascript   s    !(   t   __name__t
   __module__R   R   R   (    (    (    s1   lib/python2.7/site-packages/terminado/uimodule.pyR       s   	(   t   __doc__t   os.pathR   t   tornado.webt   tornadot   webt   UIModuleR    (    (    (    s1   lib/python2.7/site-packages/terminado/uimodule.pyt   <module>   s   