-
Notifications
You must be signed in to change notification settings - Fork 3
Update template content #26
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
Changes from all commits
851a917
a905847
6dc926d
d3b0361
496d608
7bf53a0
2eee3fe
2b181fb
0c12dc3
b568edb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import { Contract } from '@algorandfoundation/algorand-typescript' | ||
|
||
export class HelloWorld extends Contract { | ||
public hello(name: string): string { | ||
return `${this.getHello()} ${name}` | ||
} | ||
|
||
private getHello() { | ||
return 'Hello' | ||
hello(name: string): string { | ||
return `Hello, ${name}` | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import { Contract } from '@algorandfoundation/algorand-typescript' | ||
|
||
export class {{ contract_name.split('_')|map('capitalize')|join }} extends Contract { | ||
public hello(name: string): string { | ||
return `${this.getHello()} ${name}` | ||
} | ||
|
||
private getHello() { | ||
return 'Hello' | ||
{% if preset_name != 'starter' %}public {% endif %}hello(name: string): string { | ||
return `Hello, ${name}` | ||
} | ||
} |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import { Contract } from '@algorandfoundation/algorand-typescript' | ||
|
||
export class {{ contract_name.split('_')|map('capitalize')|join }} extends Contract { | ||
public hello(name: string): string { | ||
return `${this.getHello()} ${name}` | ||
} | ||
|
||
private getHello() { | ||
return 'Hello' | ||
{% if preset_name != 'starter' %}public {% endif %}hello(name: string): string { | ||
return `Hello, ${name}` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It appears the template, even for the starter version, does not have semicolons, so that's what we want. Just want to test that this works once a project is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah - I formatted it according to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you can test the output of this template if you run |
||
} | ||
} |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.