From d5fed52363dbc30e702ba60e57acb2d6155826db Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 25 Sep 2024 12:02:27 -0400 Subject: ie6 blog post, click on blog images, prims.js syntax highlighting --- src/web/core/core.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/web/core/core.php') diff --git a/src/web/core/core.php b/src/web/core/core.php index d15436a..cfeeea9 100644 --- a/src/web/core/core.php +++ b/src/web/core/core.php @@ -50,6 +50,17 @@ abstract class Core { return $url; } + /** + * Loads a js html link + * @param string $path - the path to the js file + */ + public static function link_js(string $path): string + { + $stamp = Core::asset_stamp($path); + $href = Core::get_url("public/{$path}?stamp={$stamp}"); + return ''; + } + /** * Loads a css html link * @param string $path - the path to the css file -- cgit v1.2.3-freya