HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall_forms/buyercall/buyercall/templates/macros/layout/assets.jinja2
{# Render assets that get included on all pages. #}
{%- macro render() -%}
  {{ stylesheet_tag('vendor_css', 'app_css') | safe }}

    <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" />
   <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
  {{ situational() }}
{%- endmacro -%}


{# Render assets that get situationally loaded based on the endpoint. #}
{%- macro situational() -%}
  {% if request.endpoint in ('billing.create',
                             'billing.update',
                             'billing.cancel',
                             'billing.update_payment_method') %}
      <script src="https://js.stripe.com/v2/"></script>
  {% endif %}

{%- endmacro -%}


{# Render polyfills for out dated browsers. #}
{%- macro polyfills() -%}
    <!--[if lt IE 9]>
    <script
            src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
{%- endmacro -%}