ElixirPath does not take in account of module root

Description

Using this snippet:

does not create correct path. Module root is not properly cached by html helper.

More on https://groups.google.com/forum/#!topic/coldbox/XmamqSZIFZw

Activity

Show:
Luis Majano
April 20, 2020, 7:49 PM

how can I reproduce this?

Francesco Pepe
April 20, 2020, 11:29 PM

You can check in this repo:

There is a custom module called admin, where I’m trying to include the javascript generated with elixir mix.module().

I have a module layout where I’m trying to embed js:

If you want I can provide a small sample repo.

Francesco Pepe
April 21, 2020, 12:20 AM
Edited

To simplify things up, I have created a small module:

You can install it in elixir-vuejs template and run

Just add to elixir template the mix.modules()

and then

it will create an admin.js file inside module includes folder. The module has a custom layout where I tried to include this js. Altough it seems to work, I have hardcoded the path in Layout.cfm.

Assignee

Luis Majano

Reporter

Francesco Pepe

Labels

None

Fix versions

Affects versions

Priority

Major
Configure