##// END OF EJS Templates
highlight: cell metadata to decide how to highlight foreign languages...
highlight: cell metadata to decide how to highlight foreign languages * Remove magic language detection from highlight filter, and replace it by a lookup in the cell metadata. * The highlight filter now expects a full Cell object instead of the Cell input. * Modify templates so they pass a full cell object. * Update highlight filter tests

File last commit:

r11770:6b8a9d57
r12572:b0d197bf
Show More
align_reveal_cells.tpl
16 lines | 427 B | application/vnd.groove-tool-template | SmartyLexer
damianavila
Organized reveal's templates.
r11677 {%- extends 'reveal_internals/reveal_cells.tpl' -%}
damianavila
Added changes to understand alignment metadata for each cells.
r10947
{%- block any_cell scoped -%}
{%- if cell.metadata.align_type in ['Left'] -%}
{{ super() }}
{%- elif cell.metadata.align_type in ['center'] -%}
<div style="text-align:center">
{{ super() }}
</div>
{%- elif cell.metadata.align_type in ['right'] -%}
<div style="text-align:right">
{{ super() }}
</div>
{%- endif -%}
{%- endblock any_cell -%}