Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Thomas Leymonerie
slapos.buildout
Commits
c7cd54e7
Commit
c7cd54e7
authored
Oct 18, 2015
by
Jean Jordaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added note clarifying how `<=` works
parent
71ac370d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/zc/buildout/buildout.txt
src/zc/buildout/buildout.txt
+6
-2
No files found.
src/zc/buildout/buildout.txt
View file @
c7cd54e7
...
@@ -1088,10 +1088,10 @@ Extending sections (macros)
...
@@ -1088,10 +1088,10 @@ Extending sections (macros)
---------------------------
---------------------------
A section (other than the buildout section) can extend one or more
A section (other than the buildout section) can extend one or more
other sections using the ``<
=
`` option. Options from the referenced
other sections using the ``<`` option. Options from the referenced
sections are copied to the referring section *before* variable
sections are copied to the referring section *before* variable
substitution. This, together with the ability to refer to variables
substitution. This, together with the ability to refer to variables
of the current section, allows sections to be used as macros
.
of the current section, allows sections to be used as macros
::
>>> write(sample_buildout, 'buildout.cfg',
>>> write(sample_buildout, 'buildout.cfg',
... """
... """
...
@@ -1134,6 +1134,10 @@ In this example, the ``debug``, ``with_file1`` and ``with_file2`` sections act
...
@@ -1134,6 +1134,10 @@ In this example, the ``debug``, ``with_file1`` and ``with_file2`` sections act
as macros. In particular, the variable substitutions are performed
as macros. In particular, the variable substitutions are performed
relative to the ``myfiles`` section.
relative to the ``myfiles`` section.
.. note:: Don't be fooled by the appearance of the ``<= section`` lines ---
though ``<=`` may look like a new operator, it's still just the familiar
``key = value`` syntax.
Conditional sections
Conditional sections
--------------------
--------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment