onionhammer / nim-templates

A simple string templating library for Nim
BSD 3-Clause "New" or "Revised" License
94 stars 9 forks source link

Readme example not working #1

Closed dhm116 closed 9 years ago

dhm116 commented 9 years ago

In the readme:

import templates

proc testPage (name: string) = tmpli html"""
    <body>
        <h1>Hello $name!</h1>
    </body>
    """

echo testPage()

should be:

import templates

proc testPage (name: string): string = tmpli html"""
    <body>
        <h1>Hello $name!</h1>
    </body>
    """

echo testPage()
onionhammer commented 9 years ago

Thank you, fixed.