jinja2: render template without extend
===

How I can render template without extend? i have simple renderer and i want after findout this request is ajax just render goal data

my template:

    {% extends "base.html" %}
    {% load i18n %}
    
    {% block extrahead %}
    {% endblock extrahead %}
    
    
    {% block content %}
    
      <div class="itemBg">
        <div class="itemTop">
          <div class="itemDown">
    
            <div class="rowContainer">
                <div class="show att">
    	            {{ msg }}
                </div>
    	    </div>
    
    </div></div></div>
    {% endblock %}


only i want this in render response for ajax request.

    
      <div class="itemBg">
        <div class="itemTop">
          <div class="itemDown">
    
            <div class="rowContainer">
                <div class="show att">
    	            {{ msg }}
                </div>
    	    </div>
    
    </div></div></div>

this is my render interface

    from flask import current_app, render_template
    
    def render(template, **context):
        """
        """
        return render_template(path(template), **context)

