Skip to content

Instantly share code, notes, and snippets.

@zo0m
Created March 8, 2024 07:26
Show Gist options
  • Save zo0m/b0628aab183b2286c4c12ad6ca077d19 to your computer and use it in GitHub Desktop.
Save zo0m/b0628aab183b2286c4c12ad6ca077d19 to your computer and use it in GitHub Desktop.
Webstorm File Template for Titanium component
#set($fileName = $NAME)
#set($className = ${StringUtils.removeAndHump($fileName.replaceAll("\W", "_"))})
#set($entityName = $className.substring(0, 1).toLowerCase() + $className.substring(1))
const {logDebug, logInfo, logError} = require("/app/utils");
const componentName = '${className}';
#set($fileName = $NAME)
#set($className = ${StringUtils.removeAndHump($fileName.replaceAll("\W", "_"))})
#set($entityName = $className.substring(0, 1).toLowerCase() + $className.substring(1))
Alloy
#${entityName}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment