This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"class": { | |
"prefix": "class", | |
"body": [ | |
"namespace $WORKSPACE_NAME.${1:NamespaceName};", | |
"", | |
"public class $TM_FILENAME_BASE", | |
"{ }", | |
], | |
"description": "Create a new class" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "alt+delete", | |
"command": "editor.action.sourceAction", | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html th:replace="~{base :: layout (~{:: main})}"> | |
<body> | |
<main> | |
<ul> | |
<li th:each="cliente : ${clientes}" th:text="${cliente}"></li> | |
</ul> | |
</main> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br" th:fragment="layout (conteudo)"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Herança de Templates</title> | |
</head> | |
<body> | |
<header> | |
<h1>Listagem</h1> | |
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<title>Thymeleaf - Fragments Parametrizados</title> | |
</head> | |
<body> | |
<header> | |
<h1>Texto a ser inserido no cabeçalho</h1> | |
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header th:fragment="cabecalho (texto)"> | |
<h1 th:text="${texto}"></h1> | |
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum UF { | |
AC("AC", "Acre"), | |
AL("AL", "Alagoas"), | |
AM("AM", "Amazonas"), | |
BA("BA", "Bahia"), | |
CE("CE", "Ceará"), | |
DF("DF", "Distrito Federal"), | |
ES("ES", "Espírito Santo"), | |
GO("GO", "Goiás"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<title>Thymeleaf - Fragments</title> | |
</head> | |
<body> | |
<header> | |
<h1>Cabeçalho vindo do Fragment</h1> | |
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<title>Thymeleaf - Fragments</title> | |
</head> | |
<body> | |
<!-- Com th:insert --> | |
<div> | |
<header> | |
<h1>Cabeçalho vindo do Fragment</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<title>Thymeleaf - Fragments</title> | |
</head> | |
<body> | |
<!-- Com th:insert --> | |
<div th:insert="~{cabecalho :: cabecalho}"></div> | |
<!-- Com th:replace --> |
NewerOlder