Bug 371305 - Template variable "name"
Summary: Template variable "name"
Status: RESOLVED FIXED
Alias: None
Product: LDT
Classification: Tools
Component: LuaDevelopmentTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement
Target Milestone: ---   Edit
Assignee: Simon Bernard CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2012-02-11 05:20 EST by Marc Ewert CLA
Modified: 2012-06-11 05:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Ewert CLA 2012-02-11 05:20:08 EST
Build Identifier: 

Hi,

I've a small feature request for the template system. A template variable "name" would be great. It should be the same as "file", but without the ".lua" suffix. This is useful for e.g. creating logger variables or method stubs and so on.

Reproducible: Always
Comment 1 Simon Bernard CLA 2012-06-11 05:42:51 EDT
We added two new template variables : 
1) ${module_name} 
  This is the complete module name.
  So if you have a file which is in a folder of your source path, module_name will return foldername.filename (without extension)
  This variable supports the foldername/init.lua case, in that case it will return foldername
2)${module_short_name}
  This variable behaves as 'file', but without extension
  
fixed in db113525feaffd61617b1b034ceda5a91d31d66f