PerlDancer / PerlDancer/Dancer2

Enabling relative paths for views assignment in config.yml - Test Case Failure

Open
#640 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
Perl
Stars
604
Forks
288
Avg merge
1d 5h
Merged PRs (30d)
5

Description

My apologies, there was a request in #621 to provide a testcase, however if I cannot reopen the issue I would assume recreating a new one would be appropriate, if not please advise ...
#621 Testcase failing template with relative path as part of a DSL integration test.

typical angularjs setup:
app/index.html (containing INDEX)
app/views/partial.html (containing PARTIAL)

the dancer2 views is set to ./app thru config.yaml, both test cases fail parsing the index.html and partial.html.

https://github.com/visitbethel/Dancer2/commit/3867da391163a6db9314ad4f8aab2528b5ec9f15

And here the fix
https://github.com/visitbethel/Dancer2/commit/7a3b5ea06a12e88770a7eff1fe86db36872b8408

Contributor guide

Open the contributing guide

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 with the failing DSL integration test described in #621 and inspect how config.yml assigns the Dancer2 views path. Compare the behavior with commits 3867da3 and 7a3b5ea, then confirm that the index.html and partial.html cases pass when views is set to ./app.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.