"""
Views for {{ project_name }} project.
"""
from django.shortcuts import render
from inertia import render as inertia_render


def home(request):
    """
    Home page view using Inertia.js
    """
    return inertia_render(request, 'home', {
        'message': 'Welcome to Django + Inertia.js!',
        'project_name': '{{ project_name }}',
        'frontend': '{{ frontend }}',
        'typescript': {% if use_typescript %}True{% else %}False{% endif %},
    })