diff --git a/conf/guides.yml b/conf/guides.yml index 94d905d3d51..bb4c017a283 100644 --- a/conf/guides.yml +++ b/conf/guides.yml @@ -478,6 +478,7 @@ guides: subtitle: 'Learn how to create your first Grails app' authors: - 'Zachary Klein' + - 'Sanjana' category: 'Grails Apprentice' publicationDate: '2017-01-23' versions: @@ -687,7 +688,53 @@ guides: deployment: title: Deploying your App helpWithGrails: - title: Do you need help with Grails? + title: Do you need help with Grails? + '8': + sourcePath: guides/creating-your-first-grails-app/v8 + publicationDate: '2026-08-05' + tags: + - 'beginner' + - 'domain-classes' + - 'controllers' + - 'services' + - 'gsp' + - 'unit-tests' + - 'integration-tests' + - 'scaffolding' + - 'asset-pipeline' + - 'url-mappings' + - 'getting-started' + - 'crud' + sampleRef: + repo: 'grails-guides/creating-your-first-grails-app' + branch: 'grails8' + toc: + introduction: + title: Introduction + requirements: + title: What you will need + gettingStarted: + title: Getting Started + creatingTheApp: + title: Creating the app + runningTheApp: + title: Running the app + domainClasses: + title: Domain classes + controllers: + title: Controllers and scaffolding + views: + title: GSP views + assetPipeline: + title: Asset Pipeline + services: + title: Services + testing: + title: Testing + summary: + title: Summary + helpWithGrails: + title: Do you need help with Grails? - name: 'database-per-tenant' title: 'Database per Tenant Multi-Tenancy' diff --git a/guides/creating-your-first-grails-app/v8/guide/assetPipeline.adoc b/guides/creating-your-first-grails-app/v8/guide/assetPipeline.adoc new file mode 100644 index 00000000000..b206631e0ec --- /dev/null +++ b/guides/creating-your-first-grails-app/v8/guide/assetPipeline.adoc @@ -0,0 +1,70 @@ +The web starter ships with the Asset Pipeline plugin (`cloud.wondrify:asset-pipeline-grails`). It manages CSS, JavaScript, and images under `grails-app/assets/` and exposes them with `` tags. + +Common tags: + +[source,xml] +---- + + + +---- + +Convention: + +* `grails-app/assets/javascripts` for JS +* `grails-app/assets/stylesheets` for CSS +* `grails-app/assets/images` for images + +The default layout already wires the manifests: + +[source,gsp] +.grails-app/views/layouts/main.gsp +---- + + ... +