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.

Document freemarker module usage

See original GitHub issue

I think the framework uses freemarker as template engine.

I wrote about freemarker dependencies of build.gradle.

I tried some pattern.

compile group: 'org.jetbrains.ktor', name: 'ktor-freemarker', version: '0.1.8'

and

compile 'org.jetbrains:ktor:0.1.8'

Why 0.1.8? I thought only 0.1.8 was available in the URL https://dl.bintray.com/kotlin/ktor/org/jetbrains/ktor-freemarker/0.1.8/

However, I can’t import like below import org.jetbrains.ktor.freemarker.*

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shinriyocommented, May 22, 2017

@cy6erGn0m thank you for replying. However, I wrote below in build.gradle but I can’t import

dependencies {
//    compile "org.jetbrains.ktor:ktor-freemarker:0.3.2"
    compile "org.jetbrains.ktor:freemarker:0.3.2"
}
1reaction
cy6erGn0mcommented, May 22, 2017

@shinriyo you have wrong group name org.jetbrains. Should be org.jetbrains.ktor. Also note that 0.1.8 is definitely too old: you better to use latest 0.3.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache FreeMarker Manual
Apache FreeMarker Manual For Freemarker 2.3.31 · Preface · Exposing XML documents · The DOM tree · Putting the XML into the data-model...
Read more >
Expressions - Apache FreeMarker Manual
When you supply values for interpolations or directive parameters you can use variables or more complex expressions.
Read more >
include - Apache FreeMarker Manual
You can use it to insert another FreeMarker template file (specified by the path parameter) into your template. The output from the included ......
Read more >
Who uses FreeMarker?
freemarker -cli is a command line tool that transform data files (JSON, CSV, XML, Excel, .properties, ) to output files (of any textual...
Read more >
import - Apache FreeMarker Manual
Note that it's possible to automatically do the commonly used imports for all templates, with the "auto imports" setting of Configuration .
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