Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (53 sloc) 2.09 KB
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE aspectran PUBLIC "-//ASPECTRAN//DTD Aspectran Configuration 6.0//EN"
"http://aspectran.github.io/dtd/aspectran-6.dtd">
<aspectran>
<description style="apon">
|
| {{bold}}--- Aspectran Hello World Example ---{{bold:off}}
|
|Commands that can run examples:
| {{green}}hello{{fg:reset}} - "Hello, World!" will be printed on your console.
| {{green}}hello2{{fg:reset}} - "Hello, World!" with ANSI escape codes will be printed on your console.
|
</description>
<translet name="hello">
<description style="apon">
|
| "Hello, World!" will be printed on your console.
</description>
<transform type="transform/text">
<template style="apon">
|
| Hello, World!
|
</template>
</transform>
</translet>
<translet name="hello2">
<description style="apon">
|
| "Hello, World!" with ANSI escape codes will be printed
| on your console.
</description>
<transform type="transform/text">
<template style="apon">
|
| {{bg:green}} {{reset}}
| {{bg:green}} {{magenta,bg:white}} {{bg:blue}} {{reset}}
| {{bg:green}} {{RED,bg:white}} Hello, World! {{bg:blue}} {{reset}}
| {{bg:green}} {{magenta,bg:white}} {{bg:blue}} {{reset}}
| {{magenta,bg:blue}} {{reset}}
|
</template>
</transform>
</translet>
<translet name="print-resource!">
<description style="apon">
|{{bg:magenta,fg:white}} Prints the contents of the resource "sample_resource.txt" {{reset}}
</description>
<transform type="transform/text">
<template resource="sample_resource.txt"/>
</transform>
</translet>
</aspectran>