cortav  Diff

Differences From Artifact [6b3b695c7e]:

To Artifact [9a8697d2cc]:


    30     30   	end
    31     31   
    32     32   	if not mode['render:format'] then
    33     33   		error 'what output format should i translate the input to?'
    34     34   	end
    35     35   	if mode['render:format'] == 'none' then return 0 end
    36     36   	if not ct.render[mode['render:format']] then
    37         -		ct.exns.unimpl('output format ā€œ%sā€ unsupported', mode['render:format']):throw()
           37  +		if (not ct.render.html) and not _G.native then
           38  +			-- we may be running uncompiled; otherwise something is seriously broken
           39  +			require('render.' .. mode['render:format'])
           40  +		else
           41  +			ct.exns.unimpl('output format ā€œ%sā€ unsupported', mode['render:format']):throw()
           42  +		end
    38     43   	end
    39     44   	
    40     45   	local render_opts = ss.kmap(function(k,v)
    41     46   		return k:sub(2+#mode['render:format'])
    42     47   	end, ss.kfilter(mode, function(m)
    43     48   		return ss.str.begins(m, mode['render:format']..':')
    44     49   	end))