mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 18:51:02 +00: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);
|