{% extends 'file_view_react.html' %}
{% load render_bundle from webpack_loader %}
{% load seahub_tags %}

{% block extra_style %}
{% render_bundle 'viewFileText' 'css' %}
{% endblock %}

{% block extra_data %}
  fileExt: '{{ fileext|escapejs }}',
  fileEnc: '{{ file_enc|escapejs }}',
  fileContent: '{{ file_content|escapejs }}',
  fileDownloadURL: {% if file_download_url %}'{{ file_download_url|escapejs }}'{% else %}''{% endif %},
{% endblock %}

{% block render_bundle %}
{% render_bundle 'viewFileText' 'js' %}
{% endblock %}
