# Path: moth/views/base/html_template_view.py
# class HTMLTemplateView(VulnerableTemplateView):
#     '''
#     All vulnerabilities inherit from this template, which will render the data
#     returned by the subclasses, disable anti-CSRF, etc.
#     '''
#     # If the subclass just wants to return static HTML, we give him a shortcut
#     # where he doesn't define the get method, just sets HTML and we'll do the
#     # rest
#     HTML = None
# 
#     def get(self, request, *args, **kwds):
#         if self.HTML is None:
#             raise RuntimeError('HTML needs to be set.')
#         
#         context = self.get_context_data()
#         context['html'] = self.HTML
# 
#         response = render(request, self.template_name, context)
# 
#         for key, value in self.extra_headers.iteritems():
#             response[key] = value
# 
#         return response


from moth.views.base.html_template_view import HTMLTemplateView
# -*- coding: utf-8 -*-



class LanguageENView(HTMLTemplateView):
    title = 'English page'
    description = 'Page with English words'
    url_path = 'en.html'
    
    HTML = '''WASHINGTON, Feb. 9 — The most lethal weapon directed against American troops
    in Iraq is an explosive-packed cylinder that United States intelligence
    asserts is being supplied by Iran.
    Skip to next paragraph
    The Reach of War
    Go to Complete Coverage »
    Multimedia
    A Deadly WeaponGraphic
    A Deadly Weapon
    
    The assertion of an Iranian role in supplying the device to Shiite militias
    reflects broad agreement among American intelligence agencies, although
    officials acknowledge that the picture is not entirely complete.
    
    In interviews, civilian and military officials from a broad range of
    government agencies provided specific details to support what until now has
    been a more generally worded claim, in a new National Intelligence Estimate,
    that Iran is providing “lethal support” to Shiite militants in Iraq. '''


# Path: moth/views/base/html_template_view.py
# class HTMLTemplateView(VulnerableTemplateView):
#     '''
#     All vulnerabilities inherit from this template, which will render the data
#     returned by the subclasses, disable anti-CSRF, etc.
#     '''
#     # If the subclass just wants to return static HTML, we give him a shortcut
#     # where he doesn't define the get method, just sets HTML and we'll do the
#     # rest
#     HTML = None
# 
#     def get(self, request, *args, **kwds):
#         if self.HTML is None:
#             raise RuntimeError('HTML needs to be set.')
#         
#         context = self.get_context_data()
#         context['html'] = self.HTML
# 
#         response = render(request, self.template_name, context)
# 
#         for key, value in self.extra_headers.iteritems():
#             response[key] = value
# 
#         return response


# Path: moth/views/vulnerabilities/grep/lang.py
from moth.views.base.html_template_view import HTMLTemplateView

# -*- coding: utf-8 -*-



class LanguageENView(HTMLTemplateView):
    title = 'English page'
    description = 'Page with English words'
    url_path = 'en.html'
    
    HTML = '''WASHINGTON, Feb. 9 — The most lethal weapon directed against American troops
    in Iraq is an explosive-packed cylinder that United States intelligence
    asserts is being supplied by Iran.
    Skip to next paragraph
    The Reach of War
    Go to Complete Coverage »
    Multimedia
    A Deadly WeaponGraphic
    A Deadly Weapon
    
    The assertion of an Iranian role in supplying the device to Shiite militias
    reflects broad agreement among American intelligence agencies, although
    officials acknowledge that the picture is not entirely complete.
    
    In interviews, civilian and military officials from a broad range of
    government agencies provided specific details to support what until now has
    been a more generally worded claim, in a new National Intelligence Estimate,
    that Iran is providing “lethal support” to Shiite militants in Iraq. '''


class LanguageESView(HTMLTemplateView):