linkedin / linkedin/dustjs

Dust compiled template name takes Folder name as well

Open
#773 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2.9k
Forks
461
PR merge metrics
No merged PRs in 30d

Description

Hi,

When we compile dust template trough command and if dust templates are in separate folders then It takes folder name as well for Dust.Register("testFolder/\templateName")

I want to generate only Dust.Register("templateName")

How I can achieve this through command? or any other solution?

I am using commanJs to compile.

Thanks in Advance

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the compilation with commandjs using templates in separate folders, then inspect how the compiled Dust.Register name is derived from the template path. Confirm the desired behavior by checking that compilation registers only the template name rather than the folder prefix.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.