-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First step in decoupling GT from framework #227
base: main
Are you sure you want to change the base?
Conversation
I see some tests are failing, while all seemed to work running |
Fixed some, but they still go wrong if I run all tests at once. Maybe tests cannot run two instances of Play. |
return bytes / 1048576L + "MB"; | ||
} | ||
return bytes / 1073741824L + "GB"; | ||
return Utils.formatSize(bytes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used in framework
so it cannot be moved out. Hence I've put it in Utils.
@@ -36,7 +36,7 @@ public String render(Map<String, Object> args) { | |||
* List of arguments use in render | |||
* @return The template result as string | |||
*/ | |||
protected abstract String internalRender(Map<String, Object> args); | |||
public abstract String internalRender(Map<String, Object> args); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be accessible to the fastergt
library/package/code.
<!DOCTYPE html> | ||
|
||
<html> | ||
<!doctype html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modernize
|
||
private final int status; | ||
protected final int status; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for making NotFound and Unauthorized subclasses of Error.
@@ -1,18 +1,16 @@ | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |||
<!doctype html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modernize
@cies Finally, I started reviewing this PR. My initial idea was just to move all groovy-related code from Do you want me to try it out? Or you have some own plan? |
@asolntsev thanks for looking into it!
It's been a while, but looking at the code I think I moved it because this class depends on Not moving
That's my idea too! I was aiming a little higher: I wanted all GT-code (actual templates) to be eventually moved out of Please see the discussion of the issue. |
Fixes: #65