Beispiel #1
0
    def render_server(self):
        '''
        returns code formatted for server-side PDF generation
        '''
        # override some options
        params = dict(self.options)
        params['submol_name'] = None
        # params['terse'] = False  # why?
        params['chemfig_command'] = True

        return cfm.format_output(params, self._rendered)
Beispiel #2
0
 def render_user(self):
     '''
     returns code formatted according to user options
     '''
     return cfm.format_output(self.options, self._rendered)