mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
10 lines
238 B
JavaScript
10 lines
238 B
JavaScript
|
import { readInput, writeOutput } from './common';
|
||
|
|
||
|
const greet = function (input) {
|
||
|
writeOutput({ header: input.header, data: { greeting: 'Hello ' + input.data.name + '!' } });
|
||
|
};
|
||
|
|
||
|
console.log('Greet module loaded');
|
||
|
|
||
|
readInput(greet);
|