<?php

// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound -- APD is the established namespace shared with the Pro add-on and retained for backward compatibility.
namespace APD\Front;

defined('ABSPATH') || exit;

class TemplateLoader
{
    public function locate(string $name) : string
    {
        $path = ASUKA_PRODUCT_DESIGNER_PATH . 'templates/' . ltrim($name, '/');
        return file_exists($path) ? $path : '';
    }
}
