This repository has been archived on 2026-08-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
drizzli/src/routes/weather/+layout.ts
T
2026-01-07 23:45:10 +01:00

15 lines
298 B
TypeScript

import { get } from 'svelte/store';
import { storedLocation } from '$lib/stores/settings';
import type { LayoutLoad } from './$types';
const location = get(storedLocation);
export const load: LayoutLoad = async () => {
return {
title: `Weather ${location.name}`,
location: location
};
};