question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unclear where custom template should reside

See original GitHub issue

The documentation on the page http://developer.lightbend.com/docs/paradox/latest/features/theming.html#create-local-templates is not working. I have this build.sbt:

name := "Foo Bar"
scalaVersion := "2.12.1"
enablePlugins(ParadoxSitePlugin)
paradoxTheme := None

But when I run sbt previewSite, it doesn’t find the template:

java.lang.RuntimeException: StringTemplate 'page' was not found for '/home/hhrutz/IEM/Projektantraege2014/website/target/paradox/paradox/html/index.html'. Create a template or set a theme that contains one.
	at scala.sys.package$.error(package.scala:27)
	at com.lightbend.paradox.template.PageTemplate.write(PageTemplateSystem.scala:55)

I have copied the generic theme:

$ ls -la src/main/paradox/_template/
total 48
drwxr-xr-x 4 hhrutz hhrutz  4096 Jan 30 16:25 .
drwxr-xr-x 3 hhrutz hhrutz  4096 Jan 30 16:28 ..
drwxr-xr-x 3 hhrutz hhrutz  4096 Jan 30 16:20 css
drwxr-xr-x 2 hhrutz hhrutz  4096 Jan 30 16:20 js
-rw-r--r-- 1 hhrutz hhrutz   622 Jan 30 16:20 menu.st
-rw-r--r-- 1 hhrutz hhrutz   298 Jan 30 16:25 navigation.st
-rw-r--r-- 1 hhrutz hhrutz  3990 Jan 30 16:20 page.st
-rw-r--r-- 1 hhrutz hhrutz   145 Jan 30 16:20 source.st
-rw-r--r-- 1 hhrutz hhrutz    42 Jan 30 16:20 title.st

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jonascommented, Jan 30, 2017

Yes, paradoxProperties has to be scoped using Paradox instead of Compile with the sbt-site plugin:

paradoxProperties in Paradox ++= Map(
  "extref.rfc.base_url" -> "http://tools.ietf.org/html/rfc%s"
)
0reactions
Scisscommented, Jan 30, 2017

Oh ok, I see, ParadoxSitePlugin uses src/paradox instead of src/main/paradox, but now it doesn’t pick up paradoxProperties. So these are other problems now, closing the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Confused about creating template/script - Tips
If not, then modify the French or German version, which reside in their own folders. Inside English.lproj you will find the actual template...
Read more >
Common reasons why your AE template was rejected
Users like to have the ability to customize the template to match their own unique brand and style. The color controllers should live...
Read more >
Django AllAuth Customized Templates Not Being Recognized
You have to put allauth AFTER the app in which your templates reside. ... You should place your template files under templates/account not...
Read more >
Create a live/surround template - ReSharper - JetBrains
Each live template is identified by a Shortcut — a short string of characters, for example foreach — that you can type right...
Read more >
How to create effective document templates | Zapier
Perhaps you send regular project updates to clients or investors. With a template, you know the update will always have the same formatting,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found