Skip to content

Instantly share code, notes, and snippets.

@ey-ron
Created January 2, 2026 15:15
Show Gist options
  • Select an option

  • Save ey-ron/1878b7fc54c8353f8a8ff70601aacced to your computer and use it in GitHub Desktop.

Select an option

Save ey-ron/1878b7fc54c8353f8a8ff70601aacced to your computer and use it in GitHub Desktop.
const CONFIG = {
sheet_Retirement: "Retirement Plan",
sheet_Spends: "Statement - Spends",
sheet_Investment: "Investments",
sheet_Assets: "Assets",
sheet_Goals: "Savings Goals",
sheet_Budget: "Budget & Expense",
timezone: Session.getScriptTimeZone()
};
// ==========================================
// ROUTING
// ==========================================
function doGet(e) {
const route = (e && e.parameter && e.parameter.page) ? e.parameter.page : 'exchangerate';
switch (route) {
case 'dashboard':
return db_loadDashboard();
case 'exchangerate':
return ex_loadExchangeRatePage();
case 'widgyhome':
return api_getWidgyHome();
case 'dash':
return mock_loadDashboard();
default:
return HtmlService.createHtmlOutput("<h3>Page not found.</h3>");
}
}
// ==========================================
// HTML TEMPLATE HELPER
// ==========================================
function include(filename) {
return HtmlService.createHtmlOutputFromFile(filename).getContent();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment