// Common utility functions used across the application /// Returns a greeting message for the given name fn get_greeting(name) { return `Hello, ${name}! Welcome to the Rhai relative imports example.`; } /// Formats an event object into a readable string fn format_event(event) { return `- ${event.title} on ${event.date} at ${event.time} (${event.location})`; } /// Utility function to check if a date is in the future fn is_future_date(date_str) { // Simple implementation for the example // In a real application, you would parse the date and compare with current date return true; }