Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Mojolicious: Optional placeholder and template name

by soonix (Canon)
on May 21, 2019 at 10:23 UTC ( #11100305=note: print w/replies, xml ) Need Help??


in reply to Re^2: Mojolicious: Optional placeholder and template name
in thread Mojolicious: Optional placeholder and template name

Did you try
<script src="/monomapdata.js" type="text/javascript"></script>
?

Replies are listed 'Best First'.
Re^4: Mojolicious: Optional placeholder and template name
by frazap (Monk) on May 21, 2019 at 11:43 UTC
    Yes ... That works too...

    How come ? Why ?

      • "monomapdata.js" (without leading slash) means "current directory"
      • "/monomapdata.js" (with leading slash) means "top directory"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11100305]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2020-11-30 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?