mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
More template work.
This commit is contained in:
parent
0f00887736
commit
f47c2bc8b3
7 changed files with 53 additions and 37 deletions
|
@ -49,7 +49,7 @@ val p = {{directive}} {
|
|||
}
|
||||
|
||||
application {
|
||||
mainClass = "com.example.Example"
|
||||
mainClass = "com.example.{{mainClass}}"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package {{packageName}};
|
||||
|
||||
class Example {
|
||||
class Main {
|
||||
public static void main(String[] argv) {
|
||||
System.out.println("Hello world");
|
||||
System.out.println("\n\nHello Java world from Kobalt\n\n");
|
||||
}
|
||||
}
|
8
src/main/resources/templates/kotlin/kotlin-test.mustache
Normal file
8
src/main/resources/templates/kotlin/kotlin-test.mustache
Normal file
|
@ -0,0 +1,8 @@
|
|||
package {{packageName}}
|
||||
|
||||
import org.testng.annotations.Test
|
||||
|
||||
class ExampleTest {
|
||||
@Test
|
||||
fun f() = println("Running test")
|
||||
}
|
3
src/main/resources/templates/kotlin/kotlin.mustache
Normal file
3
src/main/resources/templates/kotlin/kotlin.mustache
Normal file
|
@ -0,0 +1,3 @@
|
|||
package {{packageName}}
|
||||
|
||||
fun main(args: Array<String>) = println("\n\nHello Kotlin world from Kobalt\n\n")
|
Loading…
Add table
Add a link
Reference in a new issue