addMore function

addMore(line, curData)

Tag.addMore for @codestart.

Parameters

  1. line {String}:

    String of characters until newline.

    For example:

    console.log(myLib('hello'));
    
  2. curData {String}:

    Custom object.

    For example:

    {
        type: 'javascript',
        lines: ['// first, we need to require the module',
            'var myLib = require(\'my-project/lib\');',
            '',
            '// then we can use it!'
        ],
        last: {
            type: 'module',
            name: 'my-project/lib/index',
            params: [
                [Object]
            ],
            parent: 'my-project/lib',
            src: {
                line: 5,
                codeLine: 22,
                path: 'my-project/lib/index.js'
            },
            body: '\nJavaScript example using this module:\n\n',
            description: 'Main lib module. \n',
            title: '',
            comment: ' '
        },
        _last: undefined
    }
    

    console.log(myLib('hello')); will be added to the end of lines.