Code Monkey home page Code Monkey logo

Comments (12)

jeff-knurek avatar jeff-knurek commented on May 10, 2024 1

@wgliang I think you're missing the point of the comment:

goreporter -p undertest -r json
[Apollo]2017/04/12 14:03:44 The template path is not specified,and will use the default template[./templates/template.html]
[Apollo]2017/04/12 14:03:44 open ./templates/template.html: no such file or directory

is the same error as

goreporter -p undertest -r html
[Apollo]2017/04/12 14:05:26 The template path is not specified,and will use the default template[./templates/template.html]
[Apollo]2017/04/12 14:05:26 open ./templates/template.html: no such file or directory

I tried using -t /go/src/github.com/wgliang/goreporter/templates/template.html, but it fails when generating the output in html:

html/template:skylar-apollo: ends in a non-text context: {stateCSS delimNone urlPartNone jsCtxRegexp attrNone elementStyle <nil>}

What I would like is some documentation on what this template file is suppose to include. And more examples than the existing broken one.

from goreporter.

wgliang avatar wgliang commented on May 10, 2024

Template in the github.com/wgliang/goreporter/templates/template.html.

from goreporter.

MichaelHipp avatar MichaelHipp commented on May 10, 2024

Thanks. But the README indicates it's optional, which is evidently not correct. And it would be nice if it would default to that one if none is specified.

from goreporter.

wgliang avatar wgliang commented on May 10, 2024

{-t templatePathIfHtml} means if you want a html you must specify it.

Thank you for your suggestion, I will reconsider the current method

from goreporter.

MichaelHipp avatar MichaelHipp commented on May 10, 2024

{-t templatePathIfHtml} means if you want a html you must specify it.

Not sure I understand. If I don't specify it, it just fails with an error (see above).

from goreporter.

wgliang avatar wgliang commented on May 10, 2024

you can run it:

./goreporter -p ../goreporter -r html -t ./templates/template.html OR ./goreporter -p ../goreporter -t ./templates/template.html

from goreporter.

wgliang avatar wgliang commented on May 10, 2024

Thank you for your suggestion,and it will default to that one if none is specified.

from goreporter.

cyongxue avatar cyongxue commented on May 10, 2024

from goreporter.

MichaelHipp avatar MichaelHipp commented on May 10, 2024

I updated to latest and am now getting the same error.

$ goreporter -p ./myproject
[Apollo]2017/04/12 10:29:03 The template path is not specified,and will use the default template[./templates/template.html]
[Apollo]2017/04/12 10:29:03 open ./templates/template.html: The system cannot find the path specified.

It seems to want me to know where to find its magic template file.

from goreporter.

wgliang avatar wgliang commented on May 10, 2024

Can not find the template file. The template file in github.com/wgliang/goreporter/template/template.html.

Now,unless you specify a valid template, otherwise it will use the default template file, I have written into the program, you can safely try again.

Thank you very much for your attention and pointing out my mistakes.

from goreporter.

jeff-knurek avatar jeff-knurek commented on May 10, 2024

working for me now, thanks

from goreporter.

wgliang avatar wgliang commented on May 10, 2024

@jeff-knurek This problem has also been fixed due to the previous increase in style errors.
See in fix style

from goreporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.